Assume boolean[][] x = new boolean[5][7], what is the index variable for the element at the last row and last column in array x?
A. x[4][5]
B. x[5][7]
C. x[5][6]
D. x[4][6]
查看答案
Assume int[][][] x = new char[2][5][3], how many elements are in the array?
A. 35
B. 30
C. 45
D. 40
Given the following declaration: int[][] m = new int[5][6]; Which of the following statements is true?
A. The name m represents a two-dimensional array of 30 int values.
B. m[0].length has the value 5.
C. m.length has the value 6.
D. m[2][4] represents the element stored in the 2nd row and the 4th column of m.
What is the index variable for the element at the first row and first column in array a?
A. a[1][0]
B. a[1][1]
C. a[0][0]
D. a[0][1]
How many elements are array matrix (int[][] matrix = new int[5][5])?
A. 14
B. 25
C. 20
D. 30