Question 1
Back to Exercise
Which loop always executes its body at least once?
- A for
- B while
- C do-while Correct
- D None of them
Correct Answer: Option C
do-while checks its condition after the body, so the body runs once before the first test. for and while test first and may run zero times.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!