exam questions

Exam 1z0-808 All Questions

View all questions & answers for the 1z0-808 exam

Exam 1z0-808 topic 1 question 175 discussion

Actual exam question from Oracle's 1z0-808
Question #: 175
Topic #: 1
[All 1z0-808 Questions]

Given the code fragment:

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

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: B

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
iSnover
Highly Voted 2 years, 3 months ago
The correct answer is the letter B, notice that when instantiating [3][1] it is informing that it is a matrix of 3 lines and a column and as java indexes from 0 we have the line 0,1,2 only with the column 0 and the values ​​it has in each position is 10.
upvoted 5 times
...
MPignaProTech
Most Recent 2 months, 3 weeks ago
B is correct
upvoted 1 times
...
epicbrozo86
2 years, 1 month ago
For Test: public static void main(String[] args) { int num[][] = new int[3][1]; for (int i = 0; i < num.length; i++) { for (int j = 0; j < num[i].length; j++) { num[i][j] = 10; System.out.println("num ["+ i + "]" + "[" + j + "]" + "=" + num[i][j]); } } }
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago