Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCAP - Certified Associate Python Programmer

Domain 4Objective 3

PCAP-31-03 4.3 Equip a Class with Methods PCAP-31 Practice Questions (Page 7)

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 52 practice questions to prepare you well beyond it. (estimate)

52questions here
11free pages
6concepts
34%of the exam

Questions 31–35

  1. 31application · medium

    A `Report` class has a method `generate_summary` that needs to call another method `fetch_data` to get data before generating the summary. How should `generate_summary` call `fetch_data`?

    Select an answer first
  2. 32application · easy

    A developer is creating a `Vehicle` class with a method `move` that prints the vehicle's speed. The method should use the instance attribute `speed`. Which code snippet correctly defines this method?

    Select an answer first
  3. 33application · medium

    A developer is building a `BankAccount` class for a fintech startup. They need to ensure that each account's balance is stored on the instance, not shared across all accounts. The developer writes a method `deposit(self, amount)` that should update the balance. Which method body correctly achieves this?

    Select an answer first
  4. 34application · medium

    A `Car` class has a method `set_speed(self, speed)` that sets `self.speed = speed`. After creating `car1 = Car()` and `car2 = Car()`, which sequence of calls will set `car1.speed` to 50 and `car2.speed` to 60?

    Select an answer first
  5. 35application · easy

    A developer is creating a `Calculator` class and wants to define a method `multiply(self, a, b)` that returns the product. Which code snippet correctly defines this method?

    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.