PCEP Study Guide 2026

Everything you need to pass the PCEP exam in one place: the exam format, every topic to study, real practice questions with explanations, flashcards, and full-length practice tests. Free, no sign-up needed.

๐Ÿ“‹ PCEP Exam Format at a Glance

30
Questions
40 min
Time Limit
70.00%
Passing Score

๐Ÿ“š PCEP Topics to Study (61)

โœ๏ธ Sample PCEP Questions & Answers

1. What is the output of the following? x = 5 def change(): x = 10 change() print(x)
โœ“ 5

Without the `global` keyword, `x = 10` inside `change()` creates a local variable, leaving the global `x` unchanged at 5.

2. What is the output of `print('Python', 3, sep='.')`?
โœ“ Python.3

sep='.' is placed between the string 'Python' and the integer 3 after it is converted to its string representation.

3. Which of the following will raise an `IndexError`?
โœ“ my_list = [1, 2]; my_list[5]

Accessing `my_list[5]` on a list with only 2 elements raises `IndexError` because the index is out of the valid range.

4. What is the output of: ```python for i in range(3): pass print(i) ```
โœ“ 2

The loop variable `i` retains its last value after the loop ends, which is 2 for `range(3)`.

5. What is the output of `[0] * 4`?
โœ“ [0, 0, 0, 0]

Multiplying a list by an integer repeats its elements that many times.

6. What is the result of: ``` print('A', end='B') print('C') ```
โœ“ ABC

The first print ends with 'B' instead of '\n', so 'C' from the second print immediately follows, producing 'ABC' on one line.

๐ŸŽฏ Free PCEP Practice Tests

๐Ÿ“– PCEP Guides & Articles

Your PCEP Study Path
1. Learn with Flashcards โ†’ 2. Drill Practice Tests โ†’ 3. Take the Full Exam Simulation
Was this helpful?
PCEP Study Guide 2026 โ€” Exam Format, Topics & Practice Questions