2
QuizMultiple Choice

Creating a Game

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

Your program has a loop.You want to exit the loop completely if the user guesses the correct word.Which statement leaves the loop?

Answer
A
exit
B
break
C
quit
D
continue

Explanation

Use break to exit a loop completely when the user guesses the correct word. Continue only skips the rest of the current iteration and moves to the next one.

AI-written and checked against the verified answer.

Previous
Next