Free · No account needed · No credit card

Certified Entry-Level Python Programmer PCEP Practice Test

510 questions with instant explanations, domain breakdown, and wrong-answer analysis. Built for the real exam.

Instant feedback after each answer
Full explanations included
Domain score breakdown
Real exam: 45 min
Pass mark: 700%

Sample questions with explanations

This is exactly what you see during practice — question, options, and a full explanation after you answer.

Q1Computer Programming and Python Fundamentalseasy
Full explanation →

A developer writes a script that prompts the user for their age and stores it in a variable. Which code snippet correctly converts the input to an integer?

Aage = int(input)
age = int(input("Enter age: "))Correct
Cage = input("Enter age: ", int)
Dage = input(int("Enter age: "))

Option B is correct because it uses the `int()` function to convert the string returned by `input()` into an integer. The `input()` function always returns a string, so wrapping it with `int()` performs the type conversion needed for numeric operations.

Q2Computer Programming and Python Fundamentalseasy
Full explanation →

Which of the following is the correct way to define a function that takes no arguments and returns the value 42?

Afunction f(): return 42
Bdef f(): return 42
Cdef f: return 42
def f(): return 42Correct

Option D is correct because in Python, a function is defined using the `def` keyword, followed by the function name, parentheses (even for no arguments), a colon, and the body with `return 42`. This syntax is required by the Python language specification.

Q3Computer Programming and Python Fundamentalsmedium
Full explanation →

A program uses a variable named 'list' that shadows the built-in list type. Later, the code tries to create a new list using list([1,2,3]) but gets a TypeError. What is the most likely cause?

AThe argument [1,2,3] is invalid because it contains integers.
The variable 'list' is now an integer or other non-callable type.Correct
CThe list constructor expects a tuple, not a list.
DThe code is missing an import for the list type.

When a variable named 'list' is assigned a value (e.g., an integer), it shadows the built-in `list` type in the current scope. Later, calling `list([1,2,3])` attempts to call the variable `list` as a function, but since it now holds a non-callable object (like an integer), Python…Read full explanation

Untimed Practice

Answer at your own pace. Explanation and domain tag shown immediately after each answer.

Timed Practice

Countdown timer starts immediately. Results and domain scores shown at the end — just like the real exam.

Why practice here?

Full explanations on every question

Not just the right answer — you get exactly why each wrong option is wrong, so you learn the concept, not the answer.

Domain score breakdown

After each session see your score by exam domain so you know exactly where to focus study time.

100% free, forever

No subscription, no trial, no email wall. Start a session in under 10 seconds.

Exam-style questions

Scenario-based, precise wording, realistic distractors — written to match what you actually see on exam day.

← All PCEP questionsPCEP exam guideStudy guidePractice by domain