Question Detail

BIO 107 While Loops & Control Flow Objective Question

Question

Based on the 'Key Takeaways', a while loop continues to run under what condition?
Options
A As long as the condition is False.
B Only for a fixed number of iterations.
C As long as the condition is True.
Correct Answer
D Until all variables within the loop are updated.
Correct Answer

Option C is the correct answer.

Detailed Explanation

Slide 14, 'Key Takeaways', states: 'A while loop runs as long as the condition is True.'

Hint

What must be true for a `while` loop to continue executing?

Question Info