PCEP Control Flow, Loops, Lists and Logic Practice Question
Which THREE statements about the break statement in Python are correct? (Choose three.)
⚠ Common exam trap
Python Institute often tests the misconception that break can be used with an optional else clause, confusing it with the loop-else construct, or that break can be used outside a loop, which leads to a SyntaxError.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
It exits the innermost loop when executed.
The break statement, when executed inside a loop, immediately terminates the innermost loop it resides in, transferring control to the next statement after the loop. This is a fundamental behavior defined in Python's control flow documentation.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
It can be used with an optional else clause.
Why it's wrong here
False: the else clause belongs to the loop, not to break.
- ✓
It exits the innermost loop when executed.
Why this is correct
Correct: break terminates the innermost loop immediately.
- ✗
It can be used in an if statement outside any loop.
Why it's wrong here
False: break outside a loop causes a SyntaxError.
- ✓
If used inside a loop, it prevents the loop's else clause from executing.
Why this is correct
Correct: loop else only runs if loop completes normally without break.
- ✓
It can be used only inside a for or while loop.
Why this is correct
Correct: break is only valid within a loop.
Go deeper
Related to this question
About these practice questions
Courseiva writes every PCEP question from scratch — 498 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PCEP practice question is part of Courseiva's free Python Institute certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCEP exam.