Question 57 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 57 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given the code fragment:

int num[][] = new int [1] [3];
for (int i = 0; i < num.length; i++) {
for (int j = 0; j < num[i].length; j++) {
numfi] [i] = 10;

Which option represents the state of the num array after successful completion of the outer loop?

c A) num[0] [0] =10
num[O] [1
num[0] [2

© B) num[o] [0
num [1] [0
num [2] [0] =10

© C) num[o] [0
num [0} [1
num [0] [2

oO

© D) num[o] [0]=10
num [0} [1
num [0] [2
num [0] [3
num [1] [0]=0
num [1] [1
num [1] [2
num [1] [3

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.