Home »
PL/SQL MCQs
IF-THEN-ELSIF syntax is used –
33. IF-THEN-ELSIF syntax is used –
- Depending on whether the condition is TRUE or FALSE, you may want to execute one set of statements or another set.
- If the condition is TRUE, then you want statements to be executed
- As long as condition1 is TRUE, then one set of statements will be executed, and when condition2 is TRUE, another set will be executed.
- When condition1 is TRUE, one set of statements will be executed, and when both conditions are FALSE, a different set of statements will be executed.
Answer: C) As long as condition1 is TRUE, then one set of statements will be executed, and when condition2 is TRUE, another set will be executed.
Explanation:
As long as condition1 is TRUE, then one set of statements will be executed, and when condition2 is TRUE, another set will be executed.