Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCAP - Certified Associate Python Programmer

Domain 4Objective 6

PCAP-31-03 4.6 Construct and Initialize Objects PCAP-31 Practice Questions (Page 8)

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

48questions here
10free pages
5concepts
34%of the exam

Questions 36–40

  1. 36expert · medium

    A developer is debugging a `Counter` class. The constructor is `def __init__(self, start=0): self.count = start`. They create `c1 = Counter(5)` and `c2 = Counter()`. Later, they execute `c1.count += 1`. What is the value of `c2.count`?

    Select an answer first
  2. 37expert · medium

    A developer writes a class `Person` with `def __init__(self, name): self.name = name`. They then write `p = Person('Alice')` and `q = Person(name='Bob')`. Which statement is true?

    Select an answer first
  3. 38expert · medium

    A developer defines `class Widget:` with no `__init__`. They then write `w = Widget()`. Later, they try to access `w.size`. What happens?

    Select an answer first
  4. 39expert · hard

    A developer is designing a `Temperature` class. They want the constructor to accept a value and a scale ('C' or 'F'), and store the value in Celsius internally. Which constructor implementation correctly converts Fahrenheit to Celsius?

    Select an answer first
  5. 40application · easy

    A developer defines a class `User` with `def __init__(self, name, age):` and then writes `u = User('Alice', 30)`. What is the immediate effect of this line?

    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.