Oracle Database 11g: Program with PL/SQL — Question 40
Which two statements are true about the continue statement? (Choose two.)
Answer options
- A. The PL/SQL block execution terminates immediately.
- B. The CONTINUE statement cannot appear outside a loop.
- C. The loop completes immediately and control passes to the statement after end loop.
- D. The statements after the continue statement in the iteration are executed before terminating the LOOP.
- E. The current iteration of the loop completes immediately and control passes to the next iteration of the loop.
Correct answer: B, E
Explanation
Option B is correct because the CONTINUE statement must be used within a loop context. Option E is also correct since the continue statement causes the current iteration to end and the next iteration of the loop to begin immediately. Options A, C, and D are incorrect because they misrepresent how the CONTINUE statement functions within a loop structure.