SCJP程序员认证考试

多选题Which statements are true concerning the default layout manager for containers in the java.awt package?()AObjects instantiated from Panel do not have a default layout manager.BObjects instantiated from Panel have FlowLayout as default layout manager.CO

题目
多选题
Which statements are true concerning the default layout manager for containers in the java.awt package?()
A

Objects instantiated from Panel do not have a default layout manager.

B

Objects instantiated from Panel have FlowLayout as default layout manager.

C

Objects instantiated from Applet have BorderLayout as default layout manager.

D

Objects instantiated from Dialog have BorderLayout as default layout manager.

E

Objects instantiated from Window have the same default layout manager as instances of Applet.

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which two statements are true about precedence values in policy?() (Choose two.)

A. 1 is the default precedence.

B. A lower number is preferred.

C. A higher number is preferred.

D. 100 is the default precedence.


参考答案:B, D

第2题:

Which statements concerning the switch construct are true?()  

  • A、All switch statements must have a default label.
  • B、There must be exactly one label for each code segment in a switch statement.
  • C、The keyword continue can never occur within the body of a switch statement.
  • D、No case label may follow a default label within a single switch statement.
  • E、A character literal can be used as a value for a case label.

正确答案:E

第3题:

All the following statements concerning the nature of language change is true except()

A language change is inevitable

B language change is abrupt

C language change is universal

D language change is extensive


答案:B

第4题:

Which two statements about the best effort model for QoS are true?()

  • A、delay sensitive packets are given preferential treatment
  • B、the default policy identifies a delay sensitive class and default class
  • C、the default policy identifies a delay sensitive class, best effort class, and default class
  • D、the model is highly scalable
  • E、the model is still predominant on the internet F the model provides guaranteed service

正确答案:D,E

第5题:

Which two statements are true regarding the creation of a default constructor?() 

  • A、 The default constructor initializes method variables.
  • B、 The compiler always creates a default constructor for every class.
  • C、 The default constructor invokes the no-parameter constructor of the superclass.
  • D、 The default constructor initializes the instance variables declared in the class.
  • E、 When a class has only constructors with parameters, the compiler does not create a default constructor.

正确答案:D,E

第6题:

Which two statements are true regarding L2TP? ()(Choose two.)

A. Tunnels are initiated by the LAC

B. Tunnels are initiated by the LNS

C. By default, subscriber authentication occurs on the LNS

D. By default, subscriber authentication occurs on the LAC


参考答案:A, C

第7题:

Which three statements are true?()

  • A、 The default constructor initializes method variables.
  • B、 The default constructor has the same access as its class.
  • C、 The default constructor invoked the no-arg constructor of the superclass.
  • D、 If a class lacks a no-arg constructor, the compiler always creates a default constructor. 
  • E、 The compiler creates a default constructor only when there are no other constructors for the class.

正确答案:B,C,E

第8题:

Which two statements are true with regard to policy ordering? ()(Choose two.)

A. The last policy is the default policy, which allows all traffic.

B. The order of policies is not important.

C. New policies are placed at the end of the policy list.

D. The insert command can be used to change the order.


参考答案:C, D

第9题:

Which statements are true concerning the default layout manager for containers in the java.awt package?()  

  • A、Objects instantiated from Panel do not have a default layout manager.
  • B、Objects instantiated from Panel have FlowLayout as default layout manager.
  • C、Objects instantiated from Applet have BorderLayout as default layout manager.
  • D、Objects instantiated from Dialog have BorderLayout as default layout manager.
  • E、Objects instantiated from Window have the same default layout manager as instances of Applet.

正确答案:B,D

第10题:

Which statements are true concerning NAT? ()

  • A、 NAT provides 1 to manyaddress mapping.
  • B、 NAT provides 1 to 1 address mapping.
  • C、 NAT is only useful forTCP/UDP and ICMP traffic.
  • D、 NAT can be used for all IP traffic.

正确答案:B,D

更多相关问题