Home »
PL/SQL MCQs
Which of the following is TRUE while using PL/SQL FOR Loop?
51. Which of the following is TRUE while using PL/SQL FOR Loop?
- The counter variable is implicitly declared in the declaration section, so you do not need to declare it explicitly.
- It is not necessary to explicitly increment the counter variable since it is incremented by 1.
- FOR loops can use EXIT WHEN and EXIT statements, but it isn't often used.
- All of the above
Answer: D) All of the above
Explanation:
While using PL/SQL FOR Loop –
- The counter variable is implicitly declared in the declaration section, so you do not need to declare it explicitly.
- It is not necessary to explicitly increment the counter variable since it is incremented by 1.
- FOR loops can use EXIT WHEN and EXIT statements, but it isn't often used.