Join Examsbook
Answer : 4. "none of the above"
What is the difference between do-while and while condition?
5Q:
What is the difference between do-while and while condition?
- 1In do-while, a semicolon is used after the condition.false
- 2Semicolon is not used in Whilefalse
- 3While statement is after the conditionfalse
- 4none of the abovetrue
- Show AnswerHide Answer
- Workspace
Answer : 4. "none of the above"
Explanation :
The key difference lies in when the loop condition is checked. In the while loop, the condition is checked before the first iteration, potentially resulting in zero iterations. In the do-while loop, the condition is checked after the first iteration, ensuring that the loop body is executed at least once.