The ________ loop checks the condition before executing the block of code.

  • do-while
  • for
  • if
  • while
The "do-while" loop is used in programming to check the condition after executing the block of code at least once. It guarantees that the loop body is executed at least once, as the condition is evaluated after the first iteration. On the other hand, "for" and "while" loops check the condition before entering the loop, and "if" is used for conditional statements, not loops.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *