网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
多选题
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};


参考答案

参考解析
解析: The F. statement is incorrect. The float numbers should be separated with commas and not dots.
更多 “多选题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};” 相关考题
考题 ●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.upfsyingB.fixingC.changingD.Editing

考题 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.consequenceB.causeC.informationD.result

考题 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.updatingB.fixingC.changingD.Editing

考题 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 systemB. Corrupted BOOT.INI fileC. Corrupt MBRD. Boot sector corruption

考题 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 controllerB. Two failed processorsC. Two failed sticks of memoryD. Two failed drives

考题 Failure of which of the following parts could cause the laptop display to stop functioning?() (Select TWO).A、Power inverterB、AC adapterC、Multicard readerD、BacklightE、Keyboard

考题 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.

考题 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; }

考题 Which two characteristics describe the UDP protocol?()A、limited error checkingB、defined timersC、no recovery mechanismsD、three-way handshake

考题 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 systemB、Corrupted BOOT.INI fileC、Corrupt MBRD、Boot sector corruption

考题 Which of the following components could MOST likely cause Mike, a technician, to receive a ‘Nonsystem disk or disk error’ after POST?()A、Bad memoryB、Video cardC、Faulty chipsetD、FDD

考题 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 incorrectlyB、Corrupt MBRC、Boot sector virusD、System file is missing components

考题 Which of the following could cause an Inaccessible boot drive error during the boot process? ()A、HDD failureB、DVI failureC、USB failureD、CD failure

考题 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 BIOSB、Invalid motherboard jumper settingsC、Failing power supplyD、Floppy disk in the drive

考题 Which of the following could cause an NTLDR error on reboot?()A、Processor is failingB、Services failed to start on bootupC、RAM is faultyD、Boot.ini file is corrupt

考题 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 controllerB、 Two failed processorsC、 Two failed sticks of memoryD、 Two failed drives

考题 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 gracefullyB、The CMOS battery is deadC、The BIOS firmware is corruptD、A virus has corrupted the file

考题 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; }

考题 单选题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 systemB Corrupted BOOT.INI fileC Corrupt MBRD Boot sector corruption

考题 单选题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 BE  Both A and CF  Both B and C

考题 多选题Failure of which of the following parts could cause the laptop display to stop functioning?() (Select TWO).APower inverterBAC adapterCMulticard readerDBacklightEKeyboard

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

考题 多选题Which two conditions will cause switch-to-wire to occur? ()(Choose two.)Aloss of powerBQoS congestionCsoftware failure occuredDWX device exceeded its license speedEtraffic does not match application definiton

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

考题 多选题Which two characteristics describe the UDP protocol?()Alimited error checkingBdefined timersCno recovery mechanismsDthree-way handshake

考题 多选题In which two cases does the compiler supply a default constructor for class A?()Aclass A{}Bclass A { public A(){} }Cclass A { public A(int x){} }Dclass Z {} class A extends Z { void A(){} }

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