Multiple choice

The break statement in a nested loop results in ___________

  1. the control outside the loop stucture

  2. the control outside the innermost loop

  3. the control outside the program

  4. none of these

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

The break statement only exits the innermost loop or switch statement enclosing it. In nested loops, a break in the inner loop transfers control to the first statement after that inner loop, allowing the outer loop to continue execution.