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


相似考题
参考答案和解析
正确答案: C,D
解析: The F. statement is incorrect. The float numbers should be separated with commas and not dots.
更多“Which two cause a compiler error?() ”相关问题
  • 第1题:

    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

  • 第2题:

    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

  • 第3题:

    Which two characteristics describe the UDP protocol?()

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

    正确答案:A,C

  • 第4题:

    Which of the following components could MOST likely cause Mike, a technician, to receive a ‘Nonsystem disk or disk error’ after POST?()

    • A、Bad memory
    • B、Video card
    • C、Faulty chipset
    • D、FDD

    正确答案:D

  • 第5题:

    Which of the following could cause an Inaccessible boot drive error during the boot process? ()

    • A、HDD failure
    • B、DVI failure
    • C、USB failure
    • D、CD failure

    正确答案:A

  • 第6题:

    Which of the following could cause an NTLDR error on reboot?()

    • A、Processor is failing
    • B、Services failed to start on bootup
    • C、RAM is faulty
    • D、Boot.ini file is corrupt

    正确答案:D

  • 第7题:

    A workstation has an error message that states “NTLDR is missing”. Which of the following is MOST likely the cause?()

    • A、The system did not shutdown gracefully
    • B、The CMOS battery is dead
    • C、The BIOS firmware is corrupt
    • D、A virus has corrupted the file

    正确答案:D

  • 第8题:

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

  • 第9题:

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


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

  • 第10题:

    多选题
    Which two conditions will cause switch-to-wire to occur? ()(Choose two.)
    A

    loss of power

    B

    QoS congestion

    C

    software failure occured

    D

    WX device exceeded its license speed

    E

    traffic does not match application definiton


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

  • 第11题:

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


    正确答案: D,C
    解析: The F. statement is incorrect. The float numbers should be separated with commas and not dots.

  • 第12题:

    多选题
    In which two cases does the compiler supply a default constructor for class A?()
    A

    class A{}

    B

    class A { public A(){} }

    C

    class A { public A(int x){} }

    D

    class Z {} class A extends Z { void A(){} }


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

  • 第13题:

    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

  • 第14题:

    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

  • 第15题:

    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

  • 第16题:

    A user reports their system is displaying an error message ‘NTLDR is missing’. Which of the following is the MOST likely cause for this error?()

    • A、BOOT.INI file is configured incorrectly
    • B、Corrupt MBR
    • C、Boot sector virus
    • D、System file is missing components

    正确答案:B

  • 第17题:

    When attempting to boot a PC, the POST process completes without error. The PC then displays,‘non system disk or disk error’. Which of the following would MOST likely cause the issue?()

    • A、Out-of-date BIOS
    • B、Invalid motherboard jumper settings
    • C、Failing power supply
    • D、Floppy disk in the drive

    正确答案:D

  • 第18题:

    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

    正确答案:D

  • 第19题:

    1. class super {  2. public float getNum() {return 3.0f;}  3. }  4.    5. public class Sub extends Super { 6.   7. }   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

  • 第20题:

    单选题
    byte arry1, array2;   byte array3 ;   byte array4;   If each array has been initialized, which statement will cause a compiler error?()
    A

     Array2 = array1;

    B

     Array2 = array3;

    C

     Array2 = array4;

    D

     Both A and B

    E

     Both A and C

    F

     Both B and C


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

  • 第21题:

    单选题
    1. class super {  2. public float getNum() {return 3.0f;}  3. }  4.    5. public class Sub extends Super { 6.   7. }   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; }


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

  • 第22题:

    单选题
    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; }


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

  • 第23题:

    多选题
    Which two characteristics describe the UDP protocol?()
    A

    limited error checking

    B

    defined timers

    C

    no recovery mechanisms

    D

    three-way handshake


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

  • 第24题:

    多选题
    Which two code fragments are most likely to cause a StackOverflowError?()
    A

    A

    B

    B

    C

    C

    D

    D

    E

    E

    F

    F


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