🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: C Control Flow: all 10 questions

Quiz: C Control Flow · Question 4 of 10

Which loop always runs its body at least once?

Which loop always runs its body at least once?

  1. A.for
  2. B.while
  3. C.do-while
  4. D.none
Answer & explanation

Correct answer: do-while

do-while checks the condition after the body.

Can you get the rest right without peeking?

Take the timed Quiz: C Control Flow quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →