Asked by Rahaf Aldabain on Jun 23, 2024

verifed

Verified

A while loop is a post-test loop.

Post-test Loop

A loop that executes the body of the loop at least once before testing a condition at the end of the loop iteration.

While Loop

A control flow statement in most programming languages that repeatedly executes a block of code as long as a given condition is true.

  • Distinguish between pre-test and post-test loops.
verifed

Verified Answer

CS
Carisema Saint JeanJun 28, 2024
Final Answer :
False
Explanation :
A while loop is a pre-test loop, as the condition is checked before executing the loop body.