Which of the following statements creates a multidimensional array with 3 rows,where the first row contains 1 item,the second row contains 4 items and the final row contains 2 items
A) int[][] items = {new int {1, null, null, null},
New int {2, 3, 4, 5},
New int {6, 7, null, null}};
B) int[][] items = {new int {1},
New int {2, 3, 4, 5},
New int {6, 7}};
C) int[][] items = {new int {1},
New int {2, 3, 4, 5},
New int {6, 7},
New int {}) ;
D) int[][] items = {new int {1},
New int {4},
New int {2}};
Correct Answer:
Verified
Q73: What is the keyword associated with variable-length
Q74: Which set of statements totals the items
Q75: Which of the following correctly declares and
Q76: is (are)typically used to traverse a two-dimensional
Q77: Rectangular arrays are often used to represent
Q79: One could iterate through multi-dimensional arrays by
Q80: What kinds of arrays can variable-length argument
Q81: Passing a reference type by value is
Q82: The params modifier can be used anywhere
Q83: What is the method header for passing
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents