4. Data Collections

2d Array Creation And Access — Quiz

Test your understanding of 2d array creation and access with 5 practice questions.

Read the lesson first

Practice Questions

Question 1

What is a 2D array best described as in Java?

Question 2

Which declaration correctly creates a $3 \times 4$ integer 2D array in Java?

Question 3

What value is stored in $grid[1][2]$ if the following array is declared? $int[][] grid = { {5, 7, 9}, {2, 4, 6} };$

Question 4

What is the row index of the first row in a Java 2D array?

Question 5

Which expression correctly accesses the element in row $2$ and column $3$ of a 2D array named $scores$?