nerdexam
Oracle

1Z0-851 · Question #10

Click the Exhibit button. Which three statements are true? (Choose three.)

The correct answer is B. The code compiles and the output is 2. E. If lines 16, 17 and 18 were removed, the code would compile and the output would be 2. F. If lines 24, 25 and 26 were removed, the code would compile and the output would be 1. See the full explanation below for the reasoning.

Question

Click the Exhibit button. Which three statements are true? (Choose three.)

Exhibit

1Z0-851 question #10 exhibit

Options

  • ACompilation fails.
  • BThe code compiles and the output is 2.
  • CIf lines 16, 17 and 18 were removed, compilation would fail.
  • DIf lines 24, 25 and 26 were removed, compilation would fail.
  • EIf lines 16, 17 and 18 were removed, the code would compile and the output would be 2.
  • FIf lines 24, 25 and 26 were removed, the code would compile and the output would be 1.

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    76% (25)
  • C
    6% (2)
  • D
    15% (5)

Community Discussion

No community discussion yet for this question.

Full 1Z0-851 Practice