1.

What is true about do statement?(a) do statement executes the code of a loop at least once(b) do statement does not get execute if condition is not matched in the first iteration(c) do statement checks the condition at the beginning of the loop(d) do statement executes the code more than once always

Answer» Right choice is (a) do statement executes the code of a loop at least once

Easiest explanation: Do statement checks the condition at the end of the loop. Hence, code gets executed at least once.


Discussion

No Comment Found

Related InterviewSolutions