Which of the following apply to the while loop only? To the do...while loop only? To both?
a. It is considered a conditional loop.
b. The body of the loop executes at least once.
c. The logical expression controlling the loop is evaluated before the loop is
entered.
d. The body of the loop may not execute at all.
Which of the following apply to the while loop only? -- c, d
To the do...while loop only? -- b
To both? -- a
Comments
Leave a comment