(PCEP) Certified Entry-Level Python Programmer Practice Test
✕
📝 PCEP Practice Tests
Bitwise Operations
Controlling loop execution
Operator Precedence and Binding
Using `sep=` and `end=` in `print()`
Using the `else` block in loops
Variable Scope and the `global` keyword
Control Flow and Functions
Data Structures
Error Handling and Debugging
Error Handling and Modules
Fundamentals of Python Programming
Numeric Types and Arithmetic
String Operations and Methods
Type Conversion and Built-in Functions
📖 PCEP Study Guides
PCEP-30-02 Exam
🎥 PCEP Videos
PCEP Certification Guide: Python Entry-Level Programmer (2026)
PCEP (Certified Entry-Level Python Programmer) Test Guide
PCEP: Python Institute Certified Entry-Level Programmer Guide
PCEP Python Practice Test PDF (Free Printable 2026)
Videos
PCEP Practice Test
☰
(PCEP) Certified Entry-Level Python Programmer Practice Test
▶
PCEP Using the `else` block in loops 5
Free · Instant Results
What is the output of this code? x = 5 while x > 0: x -= 1 if x == 2: break else: print('loop ended') print('after')
A
after
B
loop ended after
C
loop ended
D
Nothing
▶ Start Practice Test