7.11 Q4: Which statement below initializes array items to contain 3 rows and 2 columns?
a. int[][] items = {{2, 4}, {6, 8}, {10, 12}};
b. int[][] items = {{2, 6, 10}, {4, 8, 12}};
c. int[][] items = {2, 4}, {6, 8}, {10, 12};
d. int[][] items = {2, 6, 10}, {4, 8, 12};
7.11 Q5: For the array that was the correct answer in the previous question, what is the
value returned by items[1][0]?
a. 4.
b. 8.
c. 12.
d. 6.
7.11 Q6: Which of the following statements creates a multidimensional array with 3 rows,
where the first row contains 1 element, the second row contains 4 elements and the final
row contains 2 elements?
a. int[][] items = {{1, null, null, null}, {2, 3, 4, 5}, {6, 7, null, null}};
b. int[][] items = {{1}, {2, 3, 4, 5}, {6, 7}};
c. int[][] items = {{1}, {2, 3, 4, 5}, {6, 7}, {});
d. int[][] items = {{1}, {4}, {2}};
7.11 Q7: 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.