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 6)

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 26–30

  1. 26expert · medium

    A developer has a class Animal with a method speak() that returns "Some sound". They create a subclass Dog that overrides speak() to return "Woof". Then they create a subclass Puppy that inherits from Dog and does not override speak(). What does puppy.speak() return?

    Select an answer first
  2. 27application · medium

    A company has a base class Employee with attributes name and salary, and a method get_info(). They need a subclass Manager that adds a department attribute and overrides get_info() to include the department. Which class definition correctly implements this?

    Select an answer first
  3. 28application · medium

    A developer is refactoring a class hierarchy. The subclass Dog inherits from Animal. The Animal class has a method speak() that returns "Some sound". The Dog class should override speak() to return "Woof" but also call the parent's speak() to log the action. Which code correctly does this?

    Select an answer first
  4. 29application · easy

    Given the following class definitions: class Vehicle: def __init__(self): self.wheels = 4 def start(self): return "Vroom" class Car(Vehicle): def __init__(self): super().__init__() self.color = "red" def honk(self): return "Beep" Which statement correctly identifies the properties and methods of a Car object?

    Select an answer first
  5. 30application · easy

    An e-commerce system defines a class Product with an __init__ method that sets self.name and self.price. The developer wants to create a product and then apply a 10% discount to its price. Which code snippet correctly does this?

    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.