Question Detail

COS 102 test topic Objective Question

Question

How does the `continue` statement alter control flow inside a loop?
Options
A It exits the loop permanently
B It skips remaining statements in the current iteration and begins the next
Correct Answer
C It restarts the entire loop from the beginning
D It returns control to the operating system
Correct Answer

Option B is the correct answer.

Detailed Explanation

The continue statement bypasses the remaining loop body for that cycle and advances to the next iteration check.

Hint

No hint available

Question Info