Bird
0
0

What does the continue statement do inside a loop in Python?

easy📝 Conceptual Q11 of 15
Python - Loop Control
What does the continue statement do inside a loop in Python?
AExits the current function
BStops the entire loop immediately
CSkips the rest of the current loop iteration and moves to the next one
DRepeats the current iteration without moving forward
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of continue

    The continue statement tells the loop to skip the remaining code in the current iteration.
  2. Step 2: Identify the loop behavior after continue

    After skipping, the loop moves to the next iteration without stopping the whole loop.
  3. Final Answer:

    Skips the rest of the current loop iteration and moves to the next one -> Option C
  4. Quick Check:

    continue skips current step [OK]
Quick Trick: Remember: continue skips current step, break stops loop [OK]
Common Mistakes:
MISTAKES
  • Confusing continue with break
  • Thinking continue exits the function
  • Assuming continue repeats the iteration

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Python Quizzes