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

SELECT, FROM, WHERE, and ORDER BY are examples or a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

The pointer in a node points to

a. the data part of a node b. the count part of a node c. the pointer part of the node d. the whole node

Computer Science & Information Technology