C Quiz – 105 | Question 2
In the context of “break” and “continue” statements in C, pick the best statement.
(A) “break” can be used in “for”, “while” and “do-while” loop body.
(B) “continue” can be used in “for”, “while” and “do-while” loop body.
(C) “break” and “continue” can be used in “for”, “while”, “do-while” loop body and “switch” body.
(D) “break” and “continue” can be used in “for”, “while” and “do-while” loop body. But only “break” can be used in “switch” body.
(E) “break” and “continue” can be used in “for”, “while” and “do-while” loop body. Besides, “continue” and “break” can be used in “switch” and “if-else” body.
Answer: (D)
Explanation: As per C standard, “continue” can be used in loop body only. “break” can be used in loop body and switch body only. That’s why correct answer is D.
Quiz of this Question
Recommended Posts:
- C Quiz - 101 | Question 2
- C Quiz - 101 | Question 1
- C Quiz - 101 | Question 3
- C Quiz - 103 | Question 3
- C | C Quiz - 113 | Question 1
- C Quiz - 104 | Question 4
- C Quiz - 104 | Question 3
- C Quiz - 104 | Question 2
- C Quiz - 104 | Question 1
- C Quiz - 103 | Question 5
- C Quiz - 103 | Question 4
- C Quiz - 111 | Question 4
- C Quiz - 112 | Question 5
- C Quiz - 103 | Question 2
- C Quiz - 101 | Question 4



