Which of the following initializes an 8 × 10 matrix with integer values that are perfect squares? (0 is a perfect square.)
I
int[][] mat = new int[8][10];
II
int[][] mat = new int[8][10];
for (int r = 0; r < mat.Length; r++)
for (int c = 0; c < mat[r].Length; c++)
mat[r][c] = r * r;
III
int[][] mat = new int[8][10];
for (int c = 0; c < mat[r].Length; c++)
for (int r = 0; r < mat.Length; r++)
mat[r][c] = c * c;
(A) I only
(B) II only
(C) III only
(D) I and II only
(E) I, II, and III