单选题Given the following expression about TextField which use a proportional pitch font.  TextField t = new TextField("they are good",40);     Which statement is true?()AThe displayed string can use multiple fonts.BThe maximum number of characters in a line

题目
单选题
Given the following expression about TextField which use a proportional pitch font.  TextField t = new TextField("they are good",40);     Which statement is true?()
A

 The displayed string can use multiple fonts.

B

 The maximum number of characters in a line will be 40.

C

 The displayed width is exactly 40 characters.

D

 The user can edit the characters.


相似考题
参考答案和解析
正确答案: D
解析: 对于TextField的该种形式的构造函数来说,前一个参数是文本域中初始的字符串的显示值,而后一个是推荐的显示宽度,以列数表示,在构造文本域的时候会将这个大小设置为最佳大小,如果容器的限制使得文本域不能显示这么多也没有办法,一般来说是比这个大小大的,而且即使宽度很小,你也可以在文本域的一行中输入很长的字符串,只有你不使用回车,在超过显示宽度后文本域会自动出现水平滚动条(没有被设置为关闭,缺省是不关闭的),而文本域的缺省编辑方式是可编辑的,一个文本域只能使用一种字体,这个字体可以在运行的过程中动态的改变,但是文本域中的所有字符串都将使用这个字体显示。
更多“Given the following expression about TextField which use a p”相关问题
  • 第1题:

    Given the following router output,which configuration file will the router use at its next reload?()

    A.config

    B.clientqos.cnf

    C.startup-config

    D.running-configuration


    参考答案:D

  • 第2题:

    The /systest filesystem is associated with the /dev/testlv logical volume on the ’testvg’ volume group. Given this information, which of the following commands can the system administrator use to determine if the /systest filesystem is mirrored?()

    • A、df
    • B、lsvg
    • C、lsfs
    • D、lsdev

    正确答案:B

  • 第3题:

    Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()

    • A、${userName}
    • B、${cookie.userName}
    • C、${cookie.user.name}
    • D、${cookies.userName[0]}

    正确答案:B

  • 第4题:

    Which of the following is a correct statement about Workload Partitions (WPARs)?()

    • A、WPARs use dedicated cores and shared memory.
    • B、WPARs are restricted to using dedicated resources.
    • C、WPARs share the resources of a single AIX instance.
    • D、WPARs use shared cores, memory, and dedicated network adapters.

    正确答案:C

  • 第5题:

    Which of the following commands can be used to obtain information about the installed software?()

    • A、 lslpp -L
    • B、 uname -s
    • C、 oslevel -q
    • D、 installp -p

    正确答案:A

  • 第6题:

    You define the following regular expression of currency values: regex tx = new regex("^-?/d+(/./d{2})?$") You are required to write code that will be used to find whether a string in the variable named Bill matches the regular expression or not. You are also required to use this code as the expression in a conditional statement and need to know which code segment to use. What should you do?()

    • A、The tx.Matches(Bill)
    • B、The tx.Equals(Bill)
    • C、The tx.Match(Bill)
    • D、The tx.IsMatch(Bill)

    正确答案:D

  • 第7题:

    单选题
    Given the following router output,which configuration file will the router use at its next reload?()
    A

    config

    B

    clientqos.cnf

    C

    startup-config

    D

    running-configuration


    正确答案: D
    解析: 暂无解析

  • 第8题:

    单选题
    You are about to create your Oracle data dictionary for use with the database. Which of the following users would you connect to the database as for this purpose in Oracle9i and later releases?()
    A

    SYSTEM 

    B

    OUTLN 

    C

    INTERNAL 

    D

    SYS


    正确答案: A
    解析: 暂无解析

  • 第9题:

    单选题
    You define the following regular expression of currency values: regex tx = new regex("^-?/d+(/./d{2})?$") You are required to write code that will be used to find whether a string in the variable named Bill matches the regular expression or not. You are also required to use this code as the expression in a conditional statement and need to know which code segment to use. What should you do?()
    A

    The tx.Matches(Bill)

    B

    The tx.Equals(Bill)

    C

    The tx.Match(Bill)

    D

    The tx.IsMatch(Bill)


    正确答案: D
    解析: 暂无解析

  • 第10题:

    单选题
    Which of the following statements is TRUE, according to the author?
    A

    Everyone has a right to hold his own opinion.

    B

    Free expression of opinions often leads to confusion.

    C

    Most people tend to be careless in forming their opinions.

    D

    Casual use of the word “opinion” often brings about quarrels.


    正确答案: A
    解析:
    细节归纳题。文章第一段第三句提到,就像你有权发表你的意见一样,我也有权发表我的意见。末段指出,是不是每个人都被赋予发表意见的权利?那当然。每个人都有发表个人意见的权利,这是中心内容。故A项“人人都有权拥有自己的意见”符合文章内容。文章首段第三句提到,若不太重视意见时,随意使用他不会引起乱子。可见,B项“自由发表意见常引起混乱”与原文不符。文章开头提到,对“意见”一词的使用分成三类:品位,信念和判断。对第一种的使用有些粗心,后两种不是,所以,C项“在构成意见上,大多数人往往是粗心的”与原文不符。文中仅在讲到品位时说明滥用意见一词会引起无聊的争吵,其他使用意见时没有D项“随便使用‘意见’一词,常引起吵架”意思。综上所述,A项正确。

  • 第11题:

    单选题
    Which of the following commands can be used to obtain information about the installed software?()
    A

     lslpp -L

    B

     uname -s

    C

     oslevel -q

    D

     installp -p


    正确答案: A
    解析: 暂无解析

  • 第12题:

    单选题
    Which of the following commands can be used to obtain information about filesets on the system that are later than the current maintenance level?()
    A

     lslpp -I

    B

     uname -r

    C

     oslevel -g

    D

     rpcinfo -p


    正确答案: A
    解析: 暂无解析

  • 第13题:

    An administrator is concerned about users utilizing the company's wireless signal with their personal laptops. Which of the following is the BEST method to use to prevent unauthorized devices from using the company's wireless network?()

    • A、Secure VPN
    • B、MAC filtering
    • C、IP filtering
    • D、Static IP addresses

    正确答案:B

  • 第14题:

    Given the following expression about TextField which use a proportional pitch font.  TextField t = new TextField("they are good",40);     Which statement is true?() 

    • A、 The displayed string can use multiple fonts.
    • B、 The maximum number of characters in a line will be 40.
    • C、 The displayed width is exactly 40 characters.
    • D、 The user can edit the characters.

    正确答案:D

  • 第15题:

    A user states that their web browser was recently updated and continuously crashes. Which of the following could the technician use to gather more information about the issue?()

    • A、NTBACKUP log
    • B、Advanced tab in the System applet in Control Panel
    • C、Event Log
    • D、Internet Options applet in Control Panel

    正确答案:C

  • 第16题:

    Which of the following commands can be used to obtain information about filesets on the system that are later than the current maintenance level?()

    • A、 lslpp -I
    • B、 uname -r
    • C、 oslevel -g
    • D、 rpcinfo -p

    正确答案:C

  • 第17题:

    Given the regular expression: 64900 . (65400-65410) Which AS Path matches the given regularexpression?()

    • A、64900 65000 65500
    • B、64900 65402 65409
    • C、64900 65000 65300 65410
    • D、64900 65402 65405 65409

    正确答案:B

  • 第18题:

    单选题
    Which of the following statements about task-based language teaching is NOT true?
    A

    Students should be given tasks to perform or problems to solve in the classroom.

    B

    Students are task-driven.

    C

    Task-based language teaching is student-centered.

    D

    Task-based language teaching follows the PPP model.


    正确答案: B
    解析:

  • 第19题:

    单选题
    Given the regular expression: 64900 . (65400-65410) Which AS Path matches the given regularexpression?()
    A

    64900 65000 65500

    B

    64900 65402 65409

    C

    64900 65000 65300 65410

    D

    64900 65402 65405 65409


    正确答案: B
    解析: 暂无解析

  • 第20题:

    多选题
    You use the segment advisor to help determine objects for which space may be reclaimed. Which three statements are true about the advisor given by the segment advisor?()
    A

    It may advise the use of online table redefinition for tables in dictionary managed tablespace.

    B

    It may advise the use of segment shrink for tables in dictionary managed tablespaces it the no chained rows.

    C

    It may advise the use of online table redefinition for tables in locally managed tablespaces

    D

    It will detect and advise about chained rows.

    E

    It may advise the use of segment shrink for free list managed tables.


    正确答案: D,C
    解析: 暂无解析

  • 第21题:

    单选题
    A system administrator periodically receives calls from users who complain about poor performance with their application. Use the following sar command output to answer the question: Which of the following system resources need more investigation?()
    A

    CPUs

    B

    Disk

    C

    Memory

    D

    NetworkX


    正确答案: D
    解析: 暂无解析

  • 第22题:

    单选题
    According to the passage, which of the following is TRUE?
    A

    Cell phone use is dangerous.

    B

    Cell phone use causes cancer.

    C

    The human brain is an electromagnetic field.

    D

    There are about 5 billion cell phone users in the world right now.


    正确答案: B
    解析:

  • 第23题:

    单选题
    According to paragraph 2, which of the following was true of the Fore people of New Guinea?
    A

    They did not want to be shown photographs.

    B

    They were famous for their story-telling skills.

    C

    They knew very little about Western culture.

    D

    They did not encourage the expression of emotions.


    正确答案: C
    解析:
    第二段“All groups including the Fore, who had almost no contact with Western culture, agreed on the portrayed emotions.”可知,Fore部落几乎与西方文化毫无接触,也就是很少了解西方文化。