Python Institute PCPP1 cheat sheet for modules, OOP, exceptions, traps, and final review.
Use this cheat sheet for Certified Professional Python Programmer 1 (PCPP1) after you know the basics but before you start a timed practice block. The goal is not to memorize a vendor catalog; the goal is to classify the scenario and reject attractive wrong answers quickly.
Use this when the stem mixes advanced syntax, modules, decorators, iterators, or object behavior.
flowchart TD
S["Scenario"] --> T["Trace the code line by line"]
T --> D["Check type, scope, or protocol behavior"]
D --> E["Check the exact runtime effect"]
E --> V["Verify output or exception behavior"]
| Lane | Decision rule | Reject when |
|---|---|---|
| Syntax and control flow | Read variables, types, conditionals, loops, functions, exceptions, and module usage accurately. | Guessing output without tracing order, scope, and type conversion. |
| Data structures | Use strings, lists, tuples, dictionaries, sets, slicing, mutability, and iteration correctly. | Confusing in-place mutation with creating a new object. |
| Functions and scope | Reason about parameters, return values, default arguments, local/global names, and call behavior. | Forgetting that default mutable arguments persist across calls. |
| Files and errors | Open, read, write, close, handle exceptions, and reason about common runtime errors. | Catching every exception without understanding the failure. |
| Object basics | Understand classes, instances, attributes, methods, constructors, and inheritance at the tested level. | Treating class attributes and instance attributes as interchangeable. |
| Trap | Better instinct |
|---|---|
| Output questions answered by instinct | Trace line by line and track type, value, and mutation. |
| Mutable defaults | Avoid shared list or dict defaults unless intentionally used. |
| Index and slice mistakes | Remember zero-based indexing and exclusive stop positions. |
| Broad exception handling | Know which exception occurs and why. |
| If the stem says | Start with |
|---|---|
| least privilege, private access, compliance, or audit | identity scope, data boundary, policy enforcement, logging, and ownership |
| least operational effort | managed service, native integration, simple workflow, and fewer moving parts |
| high availability, recovery, or outage | failure domain, recovery objective, health check, rollback, and validation |
| performance, scale, or cost | bottleneck evidence, traffic pattern, sizing, caching, batching, and quotas |
| troubleshoot, diagnose, or investigate | symptom, recent change, logs, metrics, status, dependency, and smallest safe test |
Use IT Mastery for the exact product route, practice status, spaced review when available, and close-answer explanation practice as coverage expands.
Open the exact IT Mastery route here: PCPP1 on MasteryExamPrep.
Python exam questions often test exact execution. Trace values, types, scope, mutation, and exceptions before selecting an answer.