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
Options
- A2
- B2
- Cnull
- Dan infinite loop
- Ecompilation fails
How the community answered
(41 responses)- A2% (1)
- B2% (1)
- C10% (4)
- D7% (3)
- E78% (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.
