The ________ statement is used to exit a loop prematurely.

  • break
  • continue
  • return
  • switch
In programming, the "break" statement is used to exit a loop prematurely. It is often used in loops such as "for" and "while" to terminate the loop based on a specific condition. The "break" statement is not used to return from a function, control a switch statement, or skip the current iteration of a loop, so it is the correct option.
Add your answer
Loading...

Leave a comment

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