Google News
logo
PL/SQL - Quiz(MCQ)
What is/are the correct restriction(s) on GOTO statement?
A)
No control can be transferred between outer blocks and sub-blocks.
B)
A CASE statement WHEN clause or an IF statement clause cannot transfer control to another.
C)
A LOOP statement or sub-block cannot be used as an IF statement, CASE statement, or LOOP statement.
D)
All of the above

Correct Answer :   All of the above


Explanation :

The restrictions on the GOTO statement are :
 
A LOOP statement or sub-block cannot be used as an IF statement, CASE statement, or LOOP statement.
A CASE statement WHEN clause or an IF statement clause cannot transfer control to another.
No control can be transferred between outer blocks and sub-blocks.
A subprogram cannot be controlled by a parent program.
An exception handler cannot take control.

Advertisement