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

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 46–50

  1. 46application · medium

    A company has an Employee class with methods like get_name() and get_salary(). They need a Manager class that has all Employee methods plus a method to get the department. Which class definition correctly implements inheritance?

    Select an answer first
  2. 47application · medium

    A Vehicle class has an __init__ method that sets self.speed. A Car subclass needs to also set self.brand. Which code correctly uses super() to initialize the parent part?

    Select an answer first
  3. 48application · easy

    Given the following class definition, what are the properties (instance variables) of the class? class Book: def __init__(self, title, author): self.title = title; self.author = author; def get_info(self): return f'{self.title} by {self.author}'

    Select an answer first
  4. 49application · easy

    A game development team wants to create multiple enemy characters, each with its own health and attack power. They define a class Enemy with an __init__ method. Which code correctly creates two enemies with different health values?

    Select an answer first
  5. 50application · medium

    A developer wants to ensure that a class attribute __secret is not easily accessible from outside the class. They use name mangling. How should they access this attribute from within the class?

    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.