Question 77Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 1 (9:00 AM)

Which of the following will terminate the loop immediately in C?

  1. AWhen a break statement is encountered
  2. BWhen the loop variable reaches a certain value
  3. CWhen a continue statement is encountered
  4. DWhen the loop condition is not given
Show answerHide answer

Correct answer: (A) When a break statement is encountered

Explanation

break exits the enclosing loop immediately, regardless of the condition. continue only skips the rest of the current iteration and goes on with the next one.

From DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 1 (9:00 AM)

This is question 77 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 1 (9:00 AM). 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.