Question 6 of 213
Given the code fragment:
Exam 1z0-803: Question 6 - Image 1
What is the result?
    Correct Answer: C

    The first println statement, System.out.println(array[4][1]);, works fine. It selects the element with index 4, {0, 4, 8, 12, 16}, and from this array, it selects the element with index 1, which is 4. The second println statement, however, is written incorrectly. The correct syntax should be System.out.println(array[1][4]);. As written, it would cause a compilation error due to incorrect syntax. If corrected, it would also fail at runtime with an ArrayIndexOutOfBoundsException since array[1] has only 2 elements and accessing index 4 is out of bounds.

Question 7 of 213
Given:
Exam 1z0-803: Question 7 - Image 1
How many times is 2 printed as a part of the output?
    Correct Answer: A, B, C, D, E

Question 8 of 213
Given:
Exam 1z0-803: Question 8 - Image 1
Which two actions, used independently, will permit this class to compile?
    Correct Answer: C, D

Question 9 of 213
Given:
Exam 1z0-803: Question 9 - Image 1
What is the result?
    Correct Answer: A

Question 10 of 213
Given:
Exam 1z0-803: Question 10 - Image 1
Which statement, when inserted into line 5, is valid change?
    Correct Answer: B