Timed, full-length practice sessions of original PCAP questions, written by Courseiva to the published Python Institute objectives and spread across all 4 official exam domains.
Practise under timed conditions
To practise under timed conditions, start a 60 or 120-question session, put away all notes, set a timer matching the real exam duration (65 minutes), and commit to each answer before moving forward. This builds the time management and decision-making you need on exam day.
This free PCAP mock exam uses original Courseiva questions, written to the objectives Python Institute publishes for the Certified Associate Python Programmer PCAP exam. Each session spreads questions across all 4 official exam domains in line with the published weightings. It is not the real exam and contains no real exam questions.
PCAP Domain Distribution
Object-Oriented Programming
Modules and Packages
Exceptions and File I/O
Strings
Every question is checked against the 2026 PCAP exam objectives and published under the editorial oversight of an engineer with 12+ years' experience. These are original practice questions — not dumps — so you build real understanding rather than memorising answers.
Both the mock exam and practice test use the same question bank. The difference is in how you use them — and when to use each during your PCAP study plan.
Practice test — for learning
Use the PCAP practice test when you are studying a domain. Answer questions, read every explanation immediately, and build understanding. Do 10–30 questions per domain per session. This is your primary study tool for the first 4 weeks.
Go to practice test →Mock exam — for simulation
Use the PCAP mock exam in the final 1–2 weeks before your test date. Complete a 60 or 120-question session without stopping, manage your time, then review all results at the end. This builds exam-day stamina and surfaces final weak spots.
Start 120-question mock →Try these sample questions from the mock exam bank. Commit to an answer before revealing the explanation.
A developer creates a Python class with a method that is intended to be overridden in subclasses. Which approach best ensures that the method is not accidentally called on the base class?
Select an answer to reveal the explanation
A developer wants to ensure that a class attribute is shared among all instances but cannot be modified from outside the class. Which approach is most appropriate?
Select an answer to reveal the explanation
A Python class 'BankAccount' has a method 'withdraw(amount)' that deducts 'amount' from 'self.balance'. A developer writes a subclass 'SavingsAccount' that overrides 'withdraw' to add a penalty if balance drops below minimum. Which design pattern is being used?
Select an answer to reveal the explanation
A team is developing a system that must handle different types of documents (PDF, Word, etc.). Each document type has a unique parsing method. To avoid massive conditional logic, which OOP concept should be applied?
Select an answer to reveal the explanation
A developer writes a class 'Logger' with a class method 'log(msg)' that writes to a file. Another class 'AppLogger' inherits from 'Logger'. The developer expects both classes to share the same file handle. However, after creating an instance of 'AppLogger', the file handle is different. What is the most likely cause?
Select an answer to reveal the explanation
A developer is working on a project that requires the use of a third-party package hosted on a private repository. The developer wants to ensure that the package can be imported without specifying the full repository URL each time. Which approach should be taken?
Select an answer to reveal the explanation
A developer writes a function that reads a configuration file and returns its contents as a string. The file might not exist. Which exception should be caught to handle a missing file?
Select an answer to reveal the explanation
Which of the following is the correct way to open a file for writing in text mode, ensuring that if the file already exists it will be overwritten?
Select an answer to reveal the explanation
A script uses `with open('data.bin', 'rb') as f:` to read binary data. Within the block, which method should be used to read exactly 4 bytes?
Select an answer to reveal the explanation
Consider the following code snippet:
try:
x = int(input()) y = 10 / x
print(y)
except ZeroDivisionError:
print('Division by zero')except ValueError:
print('Invalid integer')If the user enters '0', what is the output?
Select an answer to reveal the explanation
Which of the following statements about the `finally` block is true?
Select an answer to reveal the explanation
A developer needs to count the number of occurrences of the substring 'is' in the string 'This is a test. Is this a test?'. Which code correctly performs the count?
Select an answer to reveal the explanation
A programmer writes a function to check if a string is a palindrome (ignoring case and non-alphanumeric characters). Which implementation correctly achieves this?
Select an answer to reveal the explanation
Answer all 13 questions to see your domain score breakdown
Sitting the PCAP under real exam conditions is a skill in itself. Candidates who underperform often do so not because of knowledge gaps, but because of poor time management or test anxiety. Use your final mock exam sessions to address both.
The PCAP exam lasts 65 minutes. Do not spend more than 90 seconds on any single question on the first pass. Flag difficult ones and return to them after completing the rest.
On every question, immediately eliminate obviously wrong choices. Even if you are unsure between two options, narrowing to two doubles your odds. Most PCAP distractors contain a subtle error — re-read the scenario constraint before committing to the answer that sounds most familiar.
Python Institute writes many PCAP questions as realistic scenarios. Read the final sentence first — it tells you what is being asked. Then re-read the scenario with the question in mind to avoid wasting time on irrelevant details.
The real PCAP is a long, focused sitting (65 minutes). In the week before your exam, complete at least two full timed mock sessions on separate days to build concentration stamina.
Questions
40
On the real exam
Time limit
65 min
1.6 min per question
Passing score
70%
Published by the vendor
The PCAP uses scaled scoring, so the 70% passing score is not a percentage of questions correct. Consistently scoring above 80% on mock exams gives you a buffer for unexpected question types on the real exam.
Yes. Courseiva provides free PCAP mock exam questions across all official exam domains. The platform includes timed simulation, per-domain score breakdown, missed-question review, and readiness tracking. No account required — free forever, supported by advertising.
The practice test is optimised for learning: you see explanations after each question immediately. The mock exam is optimised for simulation: you answer all questions under time pressure and review at the end. Use practice tests for studying and mock exams for benchmarking.
Aim for consistent scores of 80% or above on full-length PCAP mock exams before booking your test date. The vendor's passing score is 70%, a scaled score rather than a percentage, so the buffer accounts for difficulty variation.
Most candidates who pass PCAP on their first attempt complete 3–5 full-length mock exams in the two weeks before their test. This is enough to identify final weak spots, build stamina, and verify readiness without over-stressing or running out of fresh questions.
No — all Courseiva questions are original, AI-assisted and checked against the public Python Institute exam blueprints, with editorial oversight from an experienced network and security engineer. Exam dumps are memorised real exam questions shared illegally. Using dumps violates your Python Institute certification agreement and can result in your certification being revoked. Our questions make you genuinely competent, not just test-day lucky.
Track your mock exam scores, see per-domain analytics, and benchmark readiness across every certification.
Sign Up FreeFree forever · Every certification included