Multiple Choice
Consider the following code snippet:
Int cnt = 0;
Int[][] numarray = new int[2][3];
For (int i = 0; i < 3; i++)
{
For (int j = 0; j < 2; j++)
{
Numarray[j][i] = cnt;
Cnt++;
}
}
What is the value of numarray[1][2] after the code snippet is executed?
A) 2
B) 5
C) 3
D) 4
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q31: What should you check for when calculating
Q42: Consider the following code snippet:<br>String[] data =
Q85: Which one of the following statements about
Q105: What is the valid range of index
Q107: What is the output of the following
Q109: What will be printed by the statements
Q111: What is the result of the following
Q112: Which statements about the enhanced for loop
Q113: What will be printed by the statements
Q115: The method findLargest should return the largest