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

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 11–15

  1. 11application · medium

    A logistics company needs to model each delivery truck with a unique ID and a starting fuel level. The fleet manager wants to create truck objects by passing these two values when the object is created. Which class definition best meets this requirement?

    Select an answer first
  2. 12application · easy

    A developer is writing code to create a new student object. The Student class has an __init__ method that requires a name and a grade. Which line of code correctly creates a Student object with name 'Bob' and grade 9?

    Select an answer first
  3. 13application · medium

    A developer is implementing a class to represent a movie. The __init__ method should set the title and year as instance attributes. Which code snippet correctly binds these attributes to the instance?

    Select an answer first
  4. 14application · easy

    A developer defines a class called Config with no __init__ method. They then create an instance with config = Config(). What is the result?

    Select an answer first
  5. 15expert · hard

    A developer is maintaining a class hierarchy where a base class has no __init__ and a subclass defines __init__ with optional parameters. The developer wants to ensure that creating a subclass instance without arguments still works, and that the base class is properly initialized. What is the best approach?

    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.