Which statements concerning the following code are true?()  

题目
多选题
Which statements concerning the following code are true?()   class a {   public a() {}   public a(int i) { this(); }   }   class b extends a {   public boolean b(String msg) { return false; }   }   class c extends b  {  private c() { super(); }   public c(String msg) { this(); }   public c(int i) {}   }
A

The code will fail to compile.

B

The constructor in a that takes an int as an argument will never be called as a result of constructing an     object of class b or c.

C

Class c has three constructors.

D

Objects of class b cannot be constructed.

E

At most one of the constructors of each class is called as a result of constructing an object of class c.

参考答案和解析
正确答案: B,A
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

In HDLC Protocol, when Supervisory Frame's type code is '00'.About the following statements, which is correct.

A.Receive Ready

B.Receive not Ready

C.Reject

D.Selective Reject


正确答案:A

第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题:

Which of the following statements is true? Accounts payable are ______.

A.debts owed to suppliers

B.related to purchases of goods on an open account

C.current liabilities

D.all of the above


正确答案:D
解析:文章第三段提到Accounts payable are debts...on an open account.本题是关于应付账款的表述,应付账款是企业欠供应商的债务,是由于购买商品时进行赊销而形成的应付账款,应付账款属于短期流动债务。

第4题:

单选题
Which of the following statements concerning energy is correct?()
A

Energy can be created or destroyed

B

Energy may not be transformed

C

The total quantity of energy in the universe is always the same

D

None of the above


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

第5题:

The command frame-relay map ip 10.121.16.8 102 broadcast was entered on the router. Which of the following statements is true concerning this command()。

  • A、This command should be executed from the global configuration mode
  • B、The IP address 10.121.16.8 is the local router port used to forward data
  • C、102 is the remote DLCI that will receive the information
  • D、This command is required for all Frame Relay configurations
  • E、The broadcast option allows packets, such as RIP updates, to be forwarded across the PVC

正确答案:E

第6题:

Which of the following statements about language is NOT true?

A.Language is a system
B.Language is symbol
C.Animals also have language
D.Language is arbitrary

答案:C
解析:
本题考查语言的定义。
本题要求选不正确的,C选项,动物也有语言,错误。语言是人类在交际中使用的一套任意的声音符号系统。动物没有语言,动物只是本能发出声音。综上,应选C。
A选项,系统的,故排除。
B选项,符号,故排除。
D选项,任意的,故排除。
故正确答案为C项。

第7题:

Which of the following statements concerning intellectual property is wrong?()

  • A、Intellectual property is an intangible creation
  • B、Intellectual property in ludes patents,trademarks,copyrights,etc.
  • C、Intellectual property is a visible creation
  • D、There are some agreement sconcerning intellectual property under the WTO

正确答案:C

第8题:

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

第9题:

Which statements concerning the relationships between the following classes are true?()   class Foo {  int num;   Baz comp = new Baz();   }   class Bar {  boolean flag;   }   class Baz extends Foo {   Bar thing = new Bar();   double limit;   }  

  • A、A Bar is a Baz.
  • B、A Foo has a Bar.
  • C、A Baz is a Foo.
  • D、A Foo is a Baz.
  • E、A Baz has a Bar.

正确答案:C,E

第10题:

多选题
If p and q are primes greater than 2, which of the following statements must be true? (Indicate all such statements.)
A

p + q is even

B

pq is odd

C

p2-q2 is even


正确答案: A,B
解析:
由于所有大于2的质数都是奇数,因此p和q均是奇数,两奇数相加为偶数,所以A项正确;两奇数的乘积还是奇数,所以B项正确;两奇数的平方还各自是奇数,而两奇数的平方之差是偶数,因此C项也正确;所以选择A、B、C三项。

更多相关问题