Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCAP - Certified Associate Python Programmer

Domain 4Objective 2

PCAP-31-03 4.2 Employ Class and Object Properties PCAP-31 Practice Questions (Page 2)

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

21questions here
5free pages
8concepts
34%of the exam

Questions 6–10

  1. 6foundation · easy

    Why does name mangling not make private attributes completely inaccessible?

    Select an answer first
  2. 7application · medium

    A developer wants to programmatically list all instance variables of an object `obj`, including private ones, to verify that `__init__` set everything correctly. Which code snippet achieves this?

    Select an answer first
  3. 8foundation · easy

    What is the correct way to declare and initialize an instance variable named 'color' inside a class method?

    Select an answer first
  4. 9foundation · easy

    What happens when you try to access a private class variable from outside the class?

    Select an answer first
  5. 10foundation · easy

    Given the class below, what is the output of the code? class Employee: company = 'TechCorp' def __init__(self, name): self.name = name e = Employee('Alice') print(e.company)

    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.