Question 134

In nested loops, a break statement in the inner loop:

  1. AExits only the inner loop
  2. BRestarts the outer loop from the beginning
  3. CExits the program
  4. DExits all loops
Show answerHide answer

Correct answer: (A) Exits only the inner loop

Explanation

break leaves only the innermost enclosing loop or switch.

From DSSSB TGT Computer Science Full Mock Test 3

This is question 134 of DSSSB TGT Computer Science Full Mock Test 3. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.