Multiple Choice
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];
Correct Answer:

Verified
Correct Answer:
Verified
Q23: Which command below runs TestProgram, and passes
Q24: Which of the following is false?<br>A) The
Q25: A(n)_ indicates a problem that occurs while
Q26: Which flag in a format specifier indicates
Q27: Which statement below initializes array items to
Q29: Invalid possibilities for array indices include .<br>A)
Q30: Which of the following statements is false?<br>A)
Q31: How many Book objects are created by
Q32: Which of the following statements about arrays
Q33: When you pass an array or an