Question 77Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)

Which of the following statements about do-while loop in C program is/are correct?

Which of the following statements about do-while loop in C program is/are correct? P: In do-while loop, first the condition is evaluated and then the statements are executed. Q: In do-while loop, firstly the statements inside loop body are executed and then the condition is evaluated. R: The body of the do-while loop cannot contain a block of statements.
  1. AOnly Q and R
  2. BOnly Q
  3. CP, Q and R
  4. DOnly P
Show answerHide answer

Correct answer: (B) Only Q

Explanation

A do-while loop runs its body first and then tests the condition, so Q is true and P is false. R is false because the body can be a block in braces.

From DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 3 (5:00 PM)

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