100+ Free PCAP Practice Questions
Pass your OpenEDG PCAP — Certified Associate in Python Programming (PCAP-31-03) exam on the first try — instant access, no signup required.
In the package layout below, which file marks `mypkg` as a regular Python package? mypkg/ __init__.py utils.py
Key Facts: PCAP Exam
40
Exam Questions
OpenEDG
70%
Passing Score
OpenEDG (cumulative)
65 min
Exam Duration
OpenEDG
$295
Exam Fee
OpenEDG
~34%
OOP Domain
Largest domain
Lifetime
Validity
Does not expire
PCAP-31-03 has 40 questions in 65 minutes with a 70% passing score. Domains: Modules and Packages (~12%), Exceptions (~14%), Strings (~18%), Object-Oriented Programming (~34%), and Miscellaneous — list comprehensions, lambdas, closures, generators, iterators, file I/O (~22%). PCEP is recommended but not required. Lifetime certification with no expiration. Exam fee $295 USD. Delivered online via the OpenEDG Testing Service.
Sample PCAP Practice Questions
Try these sample questions to test your PCAP exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.
1In the package layout below, which file marks `mypkg` as a regular Python package? mypkg/ __init__.py utils.py
2What does this snippet print when run as the main script? if __name__ == '__main__': print('main') else: print('imported')
3Which import style triggers a circular import only at the module-load time?
4Which standard library module would you use to generate cryptographically secure random tokens?
5What does this code print? import math print(math.floor(-2.3), math.ceil(-2.3))
6What does the following snippet output? import platform print(type(platform.python_version()).__name__)
7Which statement is TRUE about the Python exception hierarchy?
8What does this code print? try: raise ValueError('a') except ArithmeticError: print('arith') except Exception: print('exc')
9What does this code print? class MyError(Exception): pass try: raise MyError('boom') except MyError as e: print(e)
10What does this snippet output? try: try: raise ValueError('inner') except ValueError: raise TypeError('outer') except TypeError as e: print(e, e.__context__)
About the PCAP Exam
The OpenEDG PCAP-31-03 (Certified Associate in Python Programming) exam validates the ability to design, write, debug, and maintain multi-module Python 3 programs using object-oriented programming. Topics include modules and packages, exceptions hierarchy, advanced string processing, OOP (inheritance, polymorphism, encapsulation), iterators and generators, closures, lambdas, and file I/O.
Questions
40 scored questions
Time Limit
65 min
Passing Score
70%
Exam Fee
$295 (OpenEDG / OpenEDG Testing Service)
PCAP Exam Content Outline
Modules and Packages
import variants (import x, from x import y, as), sys.path and PYTHONPATH, __name__ == '__main__', package structure with __init__.py, relative vs absolute imports, selected standard library modules (math, random, platform), pip basics
Exceptions
Built-in exception hierarchy (BaseException, Exception, ArithmeticError, LookupError, etc.), try / except / else / finally, raise and raise from, defining custom exception classes, exception chaining, the Exception object's args attribute
Strings, String Processing, and Character Encoding
ASCII vs Unicode (UTF-8/UTF-16), ord() and chr(), string methods (lower, upper, title, capitalize, strip, lstrip, rstrip, replace, split, join, find, rfind, index, count, startswith, endswith, isalpha, isdigit, isalnum), string comparison, escape sequences
Object-Oriented Programming
class and instance, attributes vs methods, __init__ / __del__ / __str__ / __repr__ / __eq__, single vs double underscore (encapsulation, name mangling), inheritance and MRO, super(), polymorphism, isinstance() / issubclass(), @classmethod / @staticmethod, @property, __dict__, __slots__
Miscellaneous (Comprehensions, Lambdas, Closures, Generators, File I/O)
list and dict comprehensions, lambda expressions, map() / filter(), closures (free variables, nonlocal), iterators (__iter__, __next__), generator functions (yield) and generator expressions, file I/O (open, read, write, with), text vs binary mode, FileNotFoundError, PermissionError
How to Pass the PCAP Exam
What You Need to Know
- Passing score: 70%
- Exam length: 40 questions
- Time limit: 65 min
- Exam fee: $295
Keys to Passing
- Complete 500+ practice questions
- Score 80%+ consistently before scheduling
- Focus on highest-weighted sections
- Use our AI tutor for tough concepts
PCAP Study Tips from Top Performers
Frequently Asked Questions
What is the PCAP-31-03 exam?
PCAP-31-03 is the OpenEDG Certified Associate in Python Programming exam administered by the OpenEDG Python Institute. It validates the ability to design, write, and debug multi-module Python 3 programs using object-oriented programming, modules, packages, exceptions, strings, file I/O, generators, closures, and lambdas.
How many questions are on the PCAP exam?
PCAP-31-03 has 40 questions in 65 minutes. Item types include single-select, multiple-select, drag-and-drop, gap-fill, code insert, and code order. The passing score is a cumulative 70%. Most questions present a Python 3 code snippet and ask you to predict its output, identify the error, or complete the code.
Is PCEP required before PCAP?
No — PCEP is recommended but not required. You can take PCAP-31-03 directly. However, PCAP assumes everything PCEP covers (variables, types, control flow, basic data collections, functions, basic exceptions) and goes deeper, so most candidates pass PCEP first or have equivalent self-study experience.
What is the largest domain on the PCAP exam?
Object-Oriented Programming is the largest domain at approximately 34% of the exam. You must master class definition, __init__ and other dunder methods, single vs double underscore encapsulation and name mangling, inheritance with super() and MRO, polymorphism, isinstance() / issubclass(), @classmethod / @staticmethod, and @property.
How should I prepare for the PCAP exam?
Plan for 60-100 hours of study over 6-12 weeks. Use the free Python Essentials 2 (PE2) course on Edube Interactive — it aligns directly with PCAP-31-03 objectives. Build at least one multi-module OOP project (e.g., a small inventory manager). Complete 100+ practice code questions and aim for 80%+ before scheduling the real exam.
What jobs can I get with PCAP certification?
PCAP demonstrates associate-level Python proficiency and supports roles such as Junior/Mid Python Developer, Backend Developer, Data Engineer trainee, QA Automation Engineer, DevOps Engineer (Python tooling), and ML Engineer trainee. PCAP is widely recognized in job postings as proof of OOP and multi-module Python ability.