Which of the following sets of statements creates a multidimensional array with 3 rows, where the first row contains 1 value, the second row contains 4 items and the final row contains 2 items?

a.```
int[][] items;
items = new int[3][?];
items[0] = new int[1];
items[1] = new int[4];
items[2] = new int[2];
```
b.```
int[][] items;
items = new int[3][];
items[0] = new int[1];
items[1] = new int[4];
items[2] = new int[2];
```
c.```
int[][] items;
items = new int[?][?];
items[0] = new int[1];
items[1] = new int[4];
items[2] = new int[2];
```
d.```
int[][] items;
items[0] = new int[1];
items[1] = new int[4];
items[2] = new int[2];
```


b.```
int[][] items;
items = new int[3][];
items[0] = new int[1];
items[1] = new int[4];
items[2] = new int[2];
```

Computer Science & Information Technology

You might also like to view...

Match each of the following terms to its meaning:I.RAMII.hyperthreadingIII.clock speedIV.quad-core processorV.ROMA.a CPU with 4 coresB.volatile storageC.measure of CPU speedD.permanent storageE.simultaneous execution of more than one instruction

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Explain why it is a problem that the highlighted statements are local variables. How could you fix this problem?

What will be an ideal response?

Computer Science & Information Technology

Which of the following cables is fire retardant?

A. UTP B. PVC C. STP D. Plenum

Computer Science & Information Technology

If a method definition in a superclass has the field modifier ______, a subclass is required to override the method.

a) static b) protected c) final d) abstract

Computer Science & Information Technology