Answer to Question #303429 in C++ for wedyan

Question #303429

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.

1
Expert's answer
2022-02-27T07:03:15-0500

In case of WHILE LOOP: Correct option is [c]

c. The logical expression controlling the loop is evaluated before the loop is entered.



In case of DO - WHILE LOOP: Correct option is [b]

b. The body of the loop executes at least once.



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog