Multiple choice technology programming languages

Which looping process checks the test condition at the end of the loop?

  1. for

  2. while

  3. do-while

  4. no looping process checks the test condition at the end

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The do-while loop checks the test condition at the end of the loop, after executing the loop body. This guarantees the loop executes at least once. The 'for' and 'while' loops check conditions at the beginning.