ACtE08 · Chapter 8Demo2 · Set 2🏛️ Past Licensure QuestionID: cb2f9614
Which of the following control structures is NOT used to implement iterative looping in high-level programming languages?
Which of the following control structures is NOT used to implement iterative looping in high-level programming languages?
Multiple Choice Options
- A
for
- B✓ Correct Option
if-else
- C
while
- D
do-while
Detailed Technical Solution & Explanation
In structured programming languages:
•
`for`, `while`, and `do-while` are the standard iterative looping constructs designed to execute a block of code repeatedly based on loop termination conditions.
•
`if-else` is a selection/conditional branching control construct that executes one of two alternative code paths at most once. It does not repeat code blocks iteratively on its own without backward jump statements (like
goto).Option Analysis:
•
Option A (for): Primary counted iteration looping construct.
•
Option B (if-else): Correct choice;
if-else is a conditional branching statement, not an iterative loop.•
Option C (while): Entry-controlled iterative loop construct.
•
Option D (do-while): Exit-controlled iterative loop construct.
Reference: Demo2 · Set 2NEC Licensure Syllabus