Start learning →

How many times is the body of a do-while loop guaranteed to execute?

AZero times
BExactly twice
CAt least once
DIndefinitely
Answer & Solution
Correct answer: C. At least once
Because the condition is tested after iteration, do-while executes at least once.
Practise this question with Quill — ICSE Class 10 →

Keep practising Classes, Encapsulation and Scope

Browse all Classes, Encapsulation and Scope questions for ICSE Class 10, or explore more Computer Applications topics.

Start a Classes, Encapsulation and Scope lesson →