
Python InstitutePCAP - Certified Associate Python Programmer
Domain 4Objective 6
PCAP-31-03 4.6 Construct and Initialize Objects 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 48 practice questions to prepare you well beyond it. (estimate)
48questions here
10free pages
5concepts
34%of the exam
Questions 46–48
- 46
A `Product` class has a constructor `def __init__(self, name, price):`. Which line of code correctly creates a new `Product` instance with name `'Laptop'` and price `999`?
Select an answer first - 47
In a `Student` class, the constructor is `def __init__(self, name, grades):`. The developer wants to store the `grades` list as an instance attribute. Which line inside the constructor accomplishes this?
Select an answer first - 48
A developer defines `class Logger:` with no `__init__` method. They then write `log = Logger()`. What is true about `log`?
Select an answer first
Finished these 3 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to PCAP-31
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.