Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCAP - Certified Associate Python Programmer

Domain 4Objective 1

PCAP-31-03 4.1 Understand the Object-Oriented Approach PCAP-31 Practice Questions (Page 3)

Part of the Object-Oriented Programming domain, which accounts for 34% of the PCAP-31 exam. Python Institute does not publish an official question count, but from its 65-minute exam (~25–45 total, ~9–15 in this domain), expect 2–3 from this objective — we provide 51 practice questions to prepare you well beyond it. (estimate)

51questions here
11free pages
7concepts
34%of the exam

Questions 11–15

  1. 11foundation · easy

    What is encapsulation in object-oriented programming?

    Select an answer first
  2. 12foundation · easy

    In Python, how can you make an attribute 'protected' from direct access?

    Select an answer first
  3. 13foundation · easy

    What is inheritance in object-oriented programming?

    Select an answer first
  4. 14application · medium

    A logistics company needs to track each delivery truck's current fuel level and a method to refuel. The developer defines a class Truck with an __init__ method that sets self.fuel. Which code snippet correctly creates a new truck with 50 liters of fuel and then refuels it by 20 liters?

    Select an answer first
  5. 15application · easy

    Given the following class: class BankAccount: def __init__(self, owner, balance=0): self.owner = owner self.__balance = balance def deposit(self, amount): self.__balance += amount def get_balance(self): return self.__balance Which statement correctly identifies the properties and methods of a BankAccount object?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Python Institute. “PCAP-31” is a trademark of its owner, used for identification only.