Question Detail

BIO 107 While Loops & Control Flow Objective Question

Question

What is the primary function of the break statement in a loop, as demonstrated in the document?
Options
A To pause the loop's execution for a short period.
B To skip the current iteration and move to the next.
C To exit the loop instantly, even if its condition is still True.
Correct Answer
D To restart the loop from its beginning.
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 9 says, "Sometimes you need to exit a loop instantly, even if the condition is still True."

Hint

Think about abruptly stopping a loop's execution.

Question Info