Assertion (A) : The 'DO-WHILE' statement is used less frequently than the while statement.
Reason (R) : For most applications, it is more natural to test for continuation of a loop at the beginning rather than at the end of the loop.
UGC NET - 2013,
Answer: A
Both statements are true and the Reason explains the Assertion, option (A). The do-while statement is used less often than the while statement.
The Reason gives the cause: for most applications it is more natural to test whether a loop should continue at the beginning than at the end, and a do-while tests at the end. Option B would need a Reason that did not explain this, and options C and D would need a false statement.
Please log in or register to report this question.