CMS专题

多选题Which two cause a compiler error?()Afloat[] = new float(3);Bfloat f2[] = new float[];Cfloat[] f1 = new float[3];Dfloat f3[] = new float[3];Efloat f5[] = { 1.0f, 2.0f, 2.0f };Ffloat f4[] = new float[] { 1.0f. 2.0f. 3.0f};

题目
多选题
Which two cause a compiler error?()
A

float[] = new float(3);

B

float f2[] = new float[];

C

float[] f1 = new float[3];

D

float f3[] = new float[3];

E

float f5[] = { 1.0f, 2.0f, 2.0f };

F

float f4[] = new float[] { 1.0f. 2.0f. 3.0f};

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

第1题:

The error messages given by a C compiler show the message text, the most common cause of the error, and a suggestion for(73)the error.

A.updating

B.fixing

C.changing

D.Editing


正确答案:B
解析:译文:C编译器给出的错误信息说明了该错误最常见的原因以及纠正的办法。

第2题:

There is a power outage and all servers are shut down properly by the uninterruptible power supply (UPS) software. When one of the servers starts up it displays a logical drive failed error. This server has two processors, 16GB of memory, and a RAID 5 array with 10 drives.Which of the following is the MOST likely cause?()

A. A failed RAID controller

B. Two failed processors

C. Two failed sticks of memory

D. Two failed drives


参考答案:A

第3题:

●The error messages given by a C compiler show the message text,the most common cause of the error,and a suggestion for (73) the error.

(73) A.upfsying

B.fixing

C.changing

D.Editing


正确答案:B
【解析】译文:C编程器给出的错误信息说明了改错误最常见的原因以及纠正方法。

第4题:

Which two characteristics describe the UDP protocol?()

  • A、limited error checking
  • B、defined timers
  • C、no recovery mechanisms
  • D、three-way handshake

正确答案:A,C

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

A system powers on, begins POST, displays the BIOS version information and then hangs with the error message ‘Error loading operating system’. Which of the following is MOST likely the cause of this issue? ()

A. A virus has infected the system

B. Corrupted BOOT.INI file

C. Corrupt MBR

D. Boot sector corruption


参考答案:C

第7题:

Failure of which of the following parts could cause the laptop display to stop functioning?() (Select TWO).

  • A、Power inverter
  • B、AC adapter
  • C、Multicard reader
  • D、Backlight
  • E、Keyboard

正确答案:A,D

第8题:

The error messages given by a C compiler show the message text,the most common(68) of the error,and a suggestion for fixing the error.

A.consequence

B.cause

C.information

D.result


正确答案:B
解析:C编译器给出的错误信息包括信息文本、最常见的错误原因和一个纠正错误的建议。

第9题:

class super {   public float getNum() {return 3.0f;}   }   public class Sub extends Super {   }   Which method, placed at line 6, will cause a compiler error?()

  • A、 Public float getNum() {return 4.0f; }
  • B、 Public void getNum (){}
  • C、 Public void getNum (double d){}
  • D、 Public double getNum (float d) {retrun 4.0f; }

正确答案:B

第10题:

A system powers on, begins POST, displays the BIOS version information and then hangs with the error message ‘Error loading operating system’. Which of the following is MOST likely the cause of this issue? ()

  • A、A virus has infected the system
  • B、Corrupted BOOT.INI file
  • C、Corrupt MBR
  • D、Boot sector corruption

正确答案:C

更多相关问题