nerdexam
Oracle

1Z0-803 · Question #53

Given: What is the result?

The correct answer is E. compilation fails. The line while (--ii); will cause the compilation to fail. --ii is not a boolean value. A correct line would be while (--ii>0);

Using Loop Constructs

Question

Given:

What is the result?

Exhibit

1Z0-803 question #53 exhibit

Options

  • A2
  • B2
  • Cnull
  • Dan infinite loop
  • Ecompilation fails

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    2% (1)
  • C
    10% (4)
  • D
    7% (3)
  • E
    78% (32)

Explanation

The line while (--ii); will cause the compilation to fail. --ii is not a boolean value. A correct line would be while (--ii>0);

Topics

#loops#array access#compilation errors#infinite loop

Community Discussion

No community discussion yet for this question.

Full 1Z0-803 Practice