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}};

b. int[][] items = {{1}, {2, 3, 4, 5}, {6, 7}};

Computer Science & Information Technology

You might also like to view...

The ______ operation retrieves and removes the front of a queue.

a) isEmpty b) enqueue c) dequeue d) peek

Computer Science & Information Technology

To prevent indefinite postponement and provide writers with fast access to critical sections, kernel control paths use ________.

a) kernel semaphores b) writer locks c) reader locks d) seqlocks

Computer Science & Information Technology