多选题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(); }   publi

题目
多选题
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.


相似考题
参考答案和解析
正确答案: E,D
解析: 暂无解析
更多“Which statements concerning the following code are true?()  ”相关问题
  • 第1题:

    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

  • 第2题:

    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

  • 第3题:

    单选题
    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
    解析: 暂无解析

  • 第4题:

    多选题
    Concerning the figure below, if a =b, which of the following statements must be true? (Indicate all such statements.)
    A

    c=d

    B

    l and k are parallel

    C

    m and l are perpendicular


    正确答案: C,B
    解析:
    根据题目中的已知信息无法推断出各直线的关系,因此B、C均不正确;而由图示可知,c和d分别是a和b的补角,由于a=b,所以c=d,A项正确。

  • 第5题:

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

    Cargoes are any type of goods transported by any type of ships

    B

    Cargoes are goods transported in bulk

    C

    Cargoes usually include goods transported in bulk and in containers

    D

    Cargoes are usually packaged in containers


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

  • 第6题:

    单选题
    Which of the following statements concerning the water tube and fire tube boilers is not true?()
    A

    natural circulation of the water in the water tube boiler is better than that in the fire tube boiler

    B

    for the same output the water tube boiler will carry less mass of water compared with the fire tube boiler

    C

    the water tube boiler will cost shorter time for steam raising

    D

    the water tube boiler require lower skill in operating and maintaining


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

  • 第7题:

    单选题
    Which of the following statements is true concerning centrifugal pumps?()
    A

    They are particularly suited for pumping high viscosity fluids

    B

    They are started with the discharge valve opened

    C

    The flow of liquid is developed by imparting energy due to the rotation of an impeller

    D

    They are always mounted in a horizontal position


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

  • 第8题:

    单选题
    Which of the following statements concerning fire-tube boilers is correct?()
    A

    Combustion gases flow through the tubes

    B

    Flames impinge on the tubes

    C

    Combustion occurs in the tubes

    D

    Water flows through the tubes


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

  • 第9题:

    单选题
    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.


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

  • 第10题:

    单选题
    Which of the following statements is true concerning an oil cooler?()
    A

    The oil temperature is less than the cooling water temperature

    B

    The oil pressure is less than the cooling water pressure

    C

    The oil pressure is greater than the cooling water pressure

    D

    The oil flow control valve is always installed in the oil input line


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

  • 第11题:

    单选题
    Which of the following statements is true concerning Halon 1301 fire extinguishing equipment?()
    A

    The agent is considered nontoxic at room temperature in low concentrations

    B

    The agent is less effective than carbon dioxide

    C

    Halon primarily extinguishes the fire by cooling

    D

    The agent cannot be used on electrical fires because it leaves a residue


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

  • 第12题:

    单选题
    It is usual to identify the fluids in pipes by bands of paint at intervals, and the engineer should familiarize himself with the code in use.According to the above sentence, which of the following statements is true?()
    A

    People can know the types of fluids in pipes by feeling with hands

    B

    There are series of rings painted in the pipes to show various fluids

    C

    Engineers should wear cards standing for ranks

    D

    Engineer knows his own code very well


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

  • 第13题:

    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

  • 第14题:

    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

  • 第15题:

    多选题
    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三项。

  • 第16题:

    多选题
    Which of the following statements are true? (Indicate all such statements.)
    A

    τ(5) =τ(7)

    B

    τ(5) τ(7) =τ(35)

    C

    τ(5) + τ(7) =τ(12)


    正确答案: A,B
    解析:
    5和7均只有两个正除数,因此根据题干信息,A项正确;35有四个正除数,所以B项也是正确的;12有6个正除数,因此C项错误;选择A、B两项。

  • 第17题:

    单选题
    Which of the following conditions is true concerning a flammable liquid with a concentration above the upper explosive limit?()
    A

    The mixture is too lean to burn

    B

    The mixture is too rich to burn

    C

    The vapor is about to explode

    D

    Conditions are perfect for combustion


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

  • 第18题:

    单选题
    Which of the following statements is true concerning the overall efficiency of air compressors?()
    A

    High pressure compressors are more efficient than low pressure compressors

    B

    Mechanical efficiency divided by compressor efficiency will equal the overall efficiency of the compressor unit

    C

    Two stage compressors are generally more efficient than single stage compressors

    D

    The volumetric efficiency is decreased in multistage compressors


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

  • 第19题:

    单选题
    Which of the following statements is true concerning any evaporator?()
    A

    High conductivity of the distillate indicates distillate salinity is excessive

    B

    Increasing the absolute pressure of the shell will increase the distillers capacity

    C

    Mesh separators are used in evaporators to filter the distillate

    D

    Reducing the brine density will reduce the heat lost overboard


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

  • 第20题:

    单选题
    Which of the following statements is true concerning the cetane number of diesel fuel?()
    A

    The cetane number affects the amount of injection lag

    B

    The cetane number is an indication of the fuels viscosity

    C

    Ignition lag is reduced with fuels having a high cetane number

    D

    The cetane number is of little significance in the combustion process


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

  • 第21题:

    单选题
    Which of the following statements is correct concerning the “flash point ” of a liquid?()
    A

    It is lower than the ignition temperature

    B

    It is the temperature at which a substance will spontaneously ignite

    C

    It is the temperature at which a substance, when ignited, will continue to bum

    D

    It is the temperature at which the released vapors will fall within the explosive range


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

  • 第22题:

    单选题
    Which of the following statements is true concerning simple parallel resistance circuits?()
    A

    The total current flow equals the sum of the individual currents

    B

    The total current flow equals the reciprocal of the sum of the individual currents

    C

    The total resistance equals the sum of the individual resistance

    D

    The total voltage equals the sum of the individual voltages across each resistance


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

  • 第23题:

    单选题
    Which of the following statements is correct concerning the viscosity of lubricating oil?()
    A

    Viscosity will increase as temperature increases

    B

    Viscosity is a measure of a fluid s internal resistance to flow

    C

    Viscosity will decrease as temperature decreases

    D

    Viscosity is not dependent on temperature


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