Why Study with PlanetCert?
The Latest Questions
Practice questions and exam topics aligned with the current exam objectives.
Detailed Explanations
Go beyond the answer. Master the material with comprehensive learning and professional explanations for every concept.

AI-Powered Insights
Personalized preparation guidance that adapts to your performance and identifies weak spots automatically.
Exam Information
Official specifications published by Python Institute
Exam Format
Registration
Validity
Skills this practice test covers
- Predict what a short Python program prints, from operator priority to the sep= and end= parameters.
- Write integer literals in binary, octal and hexadecimal, and floats in scientific notation.
- Trace if-elif-else branches and while and for loops that use break, continue or else.
- Slice and copy lists, tuples and strings, and change lists and dictionaries with their methods.
- Define functions with positional, keyword and default arguments, and follow name scopes.
- Handle errors with try-except, ordering the except branches from specific to general.
Explore related topics
PCEP-30-02 exam content
4 domains · 47 topics · 174 of 192 questions sorted by domain
Computer Programming and Python Fundamentals18%34 questions
This section covers the vocabulary of programming and the building blocks of a Python program. Candidates explain how an interpreter differs from a compiler, then work with literals, variables, operators, and the print() and input() functions.
Skills tested
- Explain interpreting and compiling, and the difference between lexis, syntax and semantics.
- Name variables by Python's rules and the PEP-8 recommendations.
- Predict results that depend on operator priority, floor division and the modulo operator.
- Apply bitwise operators such as ~, &, ^ and << to integer values.
- Convert input with int() and float(), and format output with print().
Questions by topic
- Introduce literals and variables into code and use different numeral systems3
- the accuracy of floating-point numbers3
- Boolean expressions4
- Perform Input/Output console operations3
- Bitwise operators: ~ & ^ | << >>4
- the sep= and end= keyword parameters4
- numeric operators: ** * / % // + -3
- Boolean operators: not, and, or3
- string operators: * +2
- keywords2
- assignment and shortcut operators3
Control Flow – Conditional Blocks and Loops29%41 questions
Control flow is the largest section of the exam. Candidates follow how if, elif and else pick a branch, and how while and for loops repeat, stop early or end through an else clause.
Skills tested
- Trace nested if-elif-else statements to find the branch that runs.
- Build loops with while, for, range() and the in keyword.
- Predict when the else branch of a while or for loop runs.
- Use break, continue and pass, and nest loops inside conditions.
Questions by topic
- Controlling loop execution with break and continue7
- expanding loops with while-else and for-else8
- Building loops with while, for, range(), and in9
- conditional statements: if, if-else, if-elif, if-elif-else4
- the pass instruction3
- Boolean expressions1
- nesting loops and conditional statements6
- iterating through sequences2
- expanding loops with while-else1
Data Collections – Tuples, Dictionaries, Lists, and Strings25%53 questions
This section is about storing and changing groups of values. Candidates index and slice sequences, call list and dictionary methods, and tell mutable lists apart from immutable tuples and strings.
Skills tested
- Index and slice lists, tuples and strings, and predict the result.
- Change lists with append(), insert(), the del instruction and list comprehensions.
- Copy a list into a new object instead of giving the same list a second name.
- Build dictionaries, check for a key with in, and loop over keys(), items() and values().
- Use escape characters, multi-line strings and basic string methods.
Questions by topic
- Lists inside tuples and tuples inside lists4
- List comprehensions4
- Checking the existence of keys3
- Collect and process data using lists3
- Basic string functions and methods4
- the del instruction4
- the in and not in operators2
- Collect and process data using tuples3
- copying and cloning3
- tuples vs. lists: similarities and differences2
- indexing, slicing, immutability2
- multi-line strings3
- dictionaries: building, indexing, adding and removing keys5
- list methods: append(), insert(), index(), etc.5
- methods: keys(), items(), and values()2
- string operators: * +1
- lists in lists: matrices and cubes3
Functions and Exceptions28%46 questions
Candidates split code into functions and control how values move in and out of them. The section also covers the built-in exception hierarchy and how try-except blocks catch and pass on errors.
Skills tested
- Define functions that return values, and spot when a function returns None.
- Pass arguments by position, by keyword or both, with default parameter values.
- Explain name scopes, name hiding and the global keyword.
- Write a recursive function with a base case that ends the calls.
- Place IndexError and KeyError under LookupError in the exception hierarchy.
Questions by topic
- Python Built-In Exceptions Hierarchy5
- Default parameter values7
- Name scopes, name hiding (shadowing), and the global keyword7
- Recursion4
- Ordering the except branches5
- Parameters vs. arguments4
- Positional, keyword, and mixed argument passing6
- Basics of Python Exception Handling3
- the None keyword3
- the return keyword, returning results2
Requirements
- No formal prerequisites: anyone can book the exam.
- Recommended: the Python Institute's Python Essentials 1 course, which is aligned with the exam objectives.
- Recommended: comfort with using a computer. Earlier programming experience is not needed.
About the PCEP-30-02 exam
Python beginners take PCEP-30-02 to show that they can read and write simple Python code. It is the first exam in the Python Institute's programming track, and it expects no earlier coding experience. Its four sections cover Python basics, control flow, data collections such as lists and dictionaries, and functions with exception handling. Items are single-choice, multiple-choice, drag-and-drop or gap-fill. Passing earns the PCEP – Certified Entry-Level Python Programmer certification.
In the PlanetCert practice test, data collections get the most questions, with many on list methods, dictionaries and the del instruction. Each explanation follows the code to its result, which helps with traps such as the else branch of a while loop or a shadowed variable name. Study Mode suits the operator questions, where priority and floor division decide the answer. Brainy AI Assistant can trace a loop pass by pass or explain why one except branch catches an error before another.
How to earn the certification
- Earns
- PCEP – Certified Entry-Level Python ProgrammerEntry-Level
- After
- PCAP PCAP – Certified Associate in Python Programming
The associate exam that follows PCEP in the Python Institute track, covering object-oriented programming, modules and packages, and file handling. PCPP1 comes after it.
- PCAP PCAP – Certified Associate in Python Programming
How to prepare for PCEP-30-02
- 1
Guess the output, then run it
Keep a Python shell open while studying. Before running each sample from the syllabus, write down what it should print, then compare the real result.
- 2
Work through Python Essentials 1
The Python Institute's own course is aligned with the PCEP objectives. Do its labs in the built-in sandbox before moving to the next module.
- 3
Trace every loop on paper
Control flow is the largest section. Write each variable's value on every pass of a loop, including loops that use break, continue or an else branch.
- 4
Sketch the exception tree
Draw the hierarchy from BaseException and Exception down to LookupError, IndexError and KeyError. Then test which except branch catches each error when several are listed.
- 5
Finish with a timed PCEP run
Take the PCEP-30-02 practice test in Timed Mode once all four sections feel secure. Ask Brainy AI Assistant to trace any snippet that led to a wrong answer.
Start a timed PCEP-30-02run
The Python Institute's official course is Python Essentials 1 (Python Essentials - Part 1) on its Edube Interactive platform. Its companion is Python Essentials 1: The Official OpenEDG Python Institute Course Book.
Who PCEP-30-02 is for
- Students and self-taught beginners who want a first programming certification.
- Career changers who aim for junior developer, tester or data roles that use Python.
- Project managers and team leads who need to read the scripts their developers write.
- Professionals in other fields who are trying Python for everyday work.
Typical job titles: Junior Python developer · Entry-level software developer · QA tester · Automation script developer · Junior data analyst
PCEP-30-02 glossary
19 terms from the exam objectives and the vendor's official material, each defined in a sentence.
- BaseException
- The class at the root of Python's built-in exception hierarchy. Every other exception inherits from it.
- Bitwise operators
- Operators that work on the separate bits of integers: ~ (not), & (and), | (or), ^ (xor), and the << and >> shifts.
- Compiler
- A program that translates a whole program into machine code before the program runs.
- Default parameter values
- Values set for parameters in a function definition, used when a call leaves those arguments out.
- Dictionaries
- Collections of key-value pairs, in which each unique key gives access to one value.
- for-else
- A for loop with an else branch, which runs only if the loop finishes without a break.
- Global keyword
- The keyword that lets a function assign to a module-level variable instead of creating a new local one.
- Immutability
- The property of an object that cannot change after it is created, as with tuples and strings.
- Interpreter
- A program that reads source code and runs it statement by statement, without first building a separate executable file.
- Keyword arguments
- Arguments passed by parameter name, as in print(x, end=''), so their position does not matter.
- Lexis
- The set of words a programming language allows, such as its keywords, names and symbols.
- List comprehensions
- Short expressions in square brackets that build a new list from a loop, often with a condition.
- LookupError
- The abstract exception that IndexError and KeyError inherit from. Those two report an index or a key that does not exist.
- PEP-8
- Python's official style guide, with naming conventions and layout rules for readable code.
- Recursion
- A function calling itself, with a base case that stops the chain of calls.
- Scientific notation
- A way to write very large or very small floats with an exponent, as in 3E8 for three times ten to the power of eight.
- Semantics
- The meaning of code: whether a statement that follows the syntax rules also makes sense.
- Shadowing
- Name hiding: a local name inside a function hides a global name with the same spelling.
- Type casting
- Converting a value from one type to another, for example a string to an integer with int().