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.
The Answer to the Question
is below this banner.
Here's the Solution to this Question
a. Itisconsidered a conditionalloop- appliestobothbecausebothwhileloopanddo_whileloopare conditional loops
b.The bodyoftheloopexecutes at least once - This appliestodo_whilelooponlybeacuse it mjust excecute atleast once
c. The logical expression controlling theloopisevaluatedbeforetheloopisentered - This appliestowhilelooponly.
d. The bodyoftheloopmaynotexecuteatall- This appliestowhilelooponly.