1
AssignmentMultiple Choice

Parallel and Multidimensional Arrays

Question 1 • ASC Programming, Games, Apps and Society

If you write the statement below in a Java program, what action would the computer take? Statement: myGrades[3][5] = x * 10;

Answer
A
The value of x * 10 is stored in every 6th cell of the array for 4 times.
B
The value of x * 10 is stored in the 4th row and 6th column of the array.
C
The value of x * 10 is stored in every 4th cell of the array for 6 times.
D
The value of x * 10 is stored in the 4th column and 6th row of the array.
Next
If you write the statement below in a Java…