← All topics
Quiz: C Control Flow: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. What does this print? (code)
- Q2. What does this print? (code)
- Q3. What does this print? (code)
- Q4. Which loop always runs its body at least once?
- Q5. What does this print? (code)
- Q6. What does this print? (code)
- Q7. What does this print? (code)
- Q8. Which of these cannot be used as the expression in a switch?
- Q9. What does this print? (code)
- Q10. When is a while loop a more natural choice than a for loop?