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...
Another name for the World Wide Web is the Internet of Things.?
Answer the following statement true (T) or false (F)
_______ is used to monitor and inspect computer events
Fill in the blank(s) with correct word
A subject line is used to direct a letter to a specific individual, position, or department within an organization.
Answer the following statement true (T) or false (F)
If your device is connected over a(n) ____________________ Internet connection (one based on minutes), you can specify whether to sync settings or not.
Fill in the blank(s) with the appropriate word(s).