106. Which of the following sentences is true?
[UGC NET, Dec 2010]
(a) The body of a while loop is executed atleast once
(b) The body of a do... while loop is executed atleast
once
(c) The body of a do... while loop is executed zero or
more times
(d) A for loop can never be used in place of a while
loop
Answers
Answered by
0
Answer:
b.the body of a do while loop is executed atleast once
Answered by
0
while loop is executed once before the condition is checked. Its syntax is: do { // body of loop; } while (condition); ... If the condition evaluates to true , the body of the loop inside the do statement is executed again.
Similar questions
Geography,
4 months ago
Social Sciences,
4 months ago