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];
You might also like to view...
You can stop the Autofit feature from resizing text to fit in a text box by clicking the Stop Fitting Text to this Placeholder option
Indicate whether the statement is true or false
COGNITIVE ASSESSMENT Which of the following do you need to verify that you are the holder of the bank card at your local bank branch?
A. skimmer B. account code C. PIN D. transaction ID