单选题Which expressions are correct to declare an array of 10 String objects? ()A char str[];B char str[][];C String str[];D String str[10];

单选题
Which expressions are correct to declare an array of 10 String objects? ()
A

 char str[];

B

 char str[][];

C

 String str[];

D

 String str[10];


参考解析

解析: 严格来说这个题目没有给出一个正确的答案,唯一比较正确的是c,而完全满足题目要求的应该是:String str[]=new String[10]; 注意答案d的形式是不对的,这和c++也是不同的。

相关考题:

执行命令:DECLARE array(5,5),则array(3,3)的值为( )。A)1B).F.C).T.D)0

You are writing a method to compress an array of bytes.The array is passed to the method in a parameter named document.You need to compress the incoming array of bytes and return the result as an array of bytes.Which code segment should you use?()A.B.C.D.

在Visual FoxPro中说明数组的命令是A) DIMENSION和ARRAY B) DECLARE和ARRAYC)DIMENSION和DECLARE D)只有DIMENSION

Which of the following is the correct configuration for a RAID 5 array?() A. A two disk set with one data stripB. A three disk set with two data strips and a parity stripC. A two disk set with two data stripsD. A four disk set with two sets of data strips

执行命令:DECLARE array(5,5),则array(3,3)的值为( )。A)1B).EC).T.D)O

Which of the following strategies belongs to commtmication strategyA.When speaking English, the students can realize the mistakes and correct them.B.The students often talk about their own feelings about learning with classmates and teachers.C.The students communicate with others by using gestures and expressions.D.The students use reference books to get more information.

Which of the following is the correct configuration for a RAID 5 array?()A、A two disk set with one data stripB、A three disk set with two data strips and a parity stripC、A two disk set with two data stripsD、A four disk set with two sets of data strips

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

A Windows 2003 server has the operating system installed on a software RAID mirror. After a failure of one disk in the array the server will no longer boot up. The other drive is still functioning. Which of the following should be done to correct the issue? ()A、 Edit the boot.ini file.B、 Change to a hardware RAID solution.C、 Recreate the array.D、 Edit the active drive in the array.

Which of the following is the MINIMUM number of disks necessary for a RAID 10 array?()A、2B、3C、4D、6

An administrator recently installed a new array controller into a server. When the server is running POST the controller does not appear as present. Which of the following could be the reason for this?()A、The server BIOS firmware is out-of-date.B、The server does not have the correct drivers.C、The server hard drives have not begun to spin.D、The server has too little memory installed.

Which of the following is the minimum number of drives required for a RAID 10 array?()A、3B、4C、5D、10

What is the correct order to create an object in a new IBM System Storage DS8000 to get a LUN provided to a host()A、rank, array, extent pool, volumes, volume group, host connectionsB、rank, array, extent pool, volume group, volumes, host connectionsC、array, rank, extent pool, volume group, volumes, host connectionsD、array, extent pool, volumes, rank, volume group, host connections

Which expressions are correct to declare an array of 10 String objects? ()   A、 char str[];B、 char str[][];C、 String str[];D、 String str[10];

Which three form part of correct array declarations?()  A、 public int a []B、 static int [] aC、 public [] int aD、 private int a [3]E、 private int [3] a []F、 public final int [] a

public class NamedCounter {  private final String name;  private int count;  public NamedCounter(String name) { this.name = name; }  public String getName() { return name; }  public void increment() { coount++; }  public int getCount() { return count; } public void reset() { count = 0; } }  Which three changes should be made to adapt this class to be used safely by multiple threads? ()A、 declare reset() using the synchronized keywordB、 declare getName() using the synchronized keywordC、 declare getCount() using the synchronized keywordD、 declare the constructor using the synchronized keywordE、 declare increment() using the synchronized keyword

Which statement is true regarding the COALESCE function?()A、It can have a maximum of five expressions in a list B、It returns the highest NOT NULL value in the list for all rows C、It requires that all expressions in the list must be of the same data type D、It requires that at least one of the expressions in the list must have a NOT NULL value

多选题If x=6y, then which of the following expressions is a multiple of x? (Select all such expressions.)A3yB12yC30y

多选题If x and y are both positive even integers, which of the following expressions must be even? (Select all such expressions.)AxyB(x+1)yCx(y+1)

单选题Which of the following is the minimum number of drives required for a RAID 10 array?()A3B4C5D10

单选题An administrator is required to maintain maximum redundancy for 1TB of accounting files. Which of the following is the BEST option available to the administrator?()ACreate a RAID 5 array using eight 300GB disks.BCreate a RAID 10 array using six 300GB disks.CCreate a RAID 5 array using ten 300GB disks.DCreate a RAID 10 array using eight 300GB disks.

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

单选题Which ofthe following strategies belongs to communication strategy?AWhen speaking English, the students can realize the mistakes and correct them.BThe students often talk about their own feelings about learning with classmates and teachers.CThe students communicate with others by using gestures and expressions.DThe students use reference books to get more information.

多选题Which three form part of correct array declarations?()Apublic int a []Bstatic int [] aCpublic [] int aDprivate int a [3]Eprivate int [3] a []Fpublic final int [] a

单选题Which of the following is the MINIMUM number of disks necessary for a RAID 10 array?()A2B3C4D6

单选题A Windows 2003 server has the operating system installed on a software RAID mirror. After a failure of one disk in the array the server will no longer boot up. The other drive is still functioning. Which of the following should be done to correct the issue? ()A Edit the boot.ini file.B Change to a hardware RAID solution.C Recreate the array.D Edit the active drive in the array.

单选题Which statement is true regarding the COALESCE function?()AIt can have a maximum of five expressions in a list BIt returns the highest NOT NULL value in the list for all rows CIt requires that all expressions in the list must be of the same data type DIt requires that at least one of the expressions in the list must have a NOT NULL value