Conditions & Loops · Question 4 · Easy

Which statement skips the rest of the current iteration and moves on to the next iteration of the loop?

  1. continue
  2. break
  3. pass
  4. return
Answer and explanation

Answer: A. continue

Explanation: continue jumps straight to the next iteration. break ends the whole loop, pass does nothing at all, and return leaves the enclosing function.

Previous: A loop accumulates the numbers from range(1, 6). What total is printed? · Next: A while loop keeps subtracting 2 from n. What is n when the loop ends?

Practise conditions & loops

Try a fresh set of conditions & loops questions with an explanation after every answer, free and without signing up: Conditions & Loops practice. Or sit a full placement mock test.

More conditions & loops questions

More python practice

Functions & Scope · Comprehensions & Generators · Classes & Objects · Exceptions & Files · Built-ins & Standard Library · Variables, Types & Operators · Python Strings · Lists & Tuples

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge