Question Detail

BIO 107 While Loops & Control Flow Objective Question

Question

According to the "Key Takeaways," a while loop runs __________.
Options
A only once.
B for a predefined number of iterations.
C as long as the condition is True.
Correct Answer
D until an error occurs.
Correct Answer

Option C is the correct answer.

Detailed Explanation

The first key takeaway states: "A while loop runs as long as the condition is True."

Hint

The name "while" itself implies a continuous action based on a condition.

Question Info