3
AssignmentMultiple Choice

Creating a Game

Question 3 • SC-Fundamentals of Computing - Content Recovery - Design & Development

Your program has a loop. You want to pass control back to the start of a loop if a certain condition is met. What statement will keep you in the loop but skip the rest of the code in the loop?

Answer
A
continue
B
break
C
exit
D
quit

Explanation

The continue statement skips the remaining code in the current loop iteration and moves control to the loop’s next iteration, so the loop continues. Break would end the loop rather than keep it running.

AI-written and checked against the verified answer.

Previous
Next