Complete chapter-by-chapter curriculum covering all official PCAP exam objectives, with a focus on object-oriented programming, strings, modules/packages, and exception handling with file I/O.
This guide works best as a loop: read a chapter, test yourself with practice questions, look up unfamiliar terms in the glossary, then move to the next chapter.
17 chapters covering every exam objective. Each chapter includes key concepts, exam tips, common traps, comparison tables, and a 5-question quiz at the end.
Start Chapter 1Free timed and untimed practice with instant feedback and full explanations. Pick 10–120 questions per session. Filter by domain to drill your weak areas.
Go to practice testEvery PCAP-31-03term defined and searchable. Use it when a chapter mentions a concept you haven't seen before or want a quick refresher on.
Browse glossaryExam blueprint, domain weights, passing score, duration, cost, and registration links. Start here if you're new to this certification.
View exam guidePython Basics, Variables, and Core Data Types
Objective 1.1 · Understand the Python environment, variables, and basic data types (int, float, bool, str).
Control Flow, Conditional Statements, and Loops
Objective 1.2 · Use if, else, elif, while, and for loops to control program flow.
Collections: Lists, Tuples, and Dictionaries
Objective 1.3 · Manipulate lists, tuples, dictionaries, and understand their methods and use cases.
Functions, Parameters, and Scope
Objective 1.4 · Define and call functions, understand parameter passing, return values, and variable scope.
Strings: Operations, Slicing, and Built-In Methods
Objective 2.1 · Perform string creation, indexing, slicing, concatenation, and use common string methods.
Advanced String Formatting, Slicing, and Regular Expressions
Objective 2.2 · Use f-strings, format(), advanced slicing, and introductory regular expressions with re module.
Exception Handling: Try, Except, Finally
Objective 3.1 · Implement try-except blocks, handle multiple exceptions, and use finally for cleanup.
Custom Exceptions and Assertions
Objective 3.2 · Define custom exception classes, raise exceptions, and use assertions for debugging.
File Input/Output: Reading, Writing, and Context Managers
Objective 3.3 · Open, read, and write text and binary files; use with statements and context managers.
Working with the File System and Directories
Objective 3.4 · Use os and pathlib modules to navigate, create, and inspect files and directories.
Modules and Packages: Importing and Namespaces
Objective 4.1 · Create modules, import using various methods, and understand package structure with __init__.py.
Exploring the Python Standard Library: sys, math, random, datetime
Objective 4.2 · Use commonly used standard library modules effectively in programs.
Object-Oriented Programming Basics: Classes and Objects
Objective 5.1 · Define classes, instantiate objects, and use instance attributes and methods.
Inheritance, Polymorphism, and Method Overriding
Objective 5.2 · Apply inheritance, call parent class methods, and use polymorphic behavior.
Encapsulation, Properties, and Class Variables
Objective 5.3 · Use private/protected naming, @property decorators, class methods, and static methods.
Advanced OOP: Special Methods (Dunder) and Multiple Inheritance
Objective 5.4 · Implement __init__, __str__, __repr__, __eq__ and manage multiple inheritance and MRO.
Comprehensive Review and Practice Exam Simulation
Objective 6.1 · Review all core objectives, practice sample questions, and simulate exam conditions.
Free PCAP-31-03 practice questions with full explanations. Test what you learn chapter by chapter.
PCAP-31-03 Practice Questions