17
AssignmentMultiple Choice

Iteration

Question 17 • VA-Information Technology Fundamentals B

Which of the following returns to the beginning of the while loop?

Answer
A
the continue statement
B
the break statement
C
the return statement
D
the end statement

Explanation

The continue statement skips the remaining statements in the current loop iteration and moves to the next iteration, returning control to the while loop’s condition. The break statement exits the loop, while return exits the current function. Thus, the continue statement is the one that returns to the beginning of the while loop.

AI-written and checked against the verified answer.

Previous
Next