
Python InstitutePCAP - Certified Associate Python Programmer
Domain 4Objective 6
PCAP-31-03 4.6 Construct and Initialize Objects 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 48 practice questions to prepare you well beyond it. (estimate)
48questions here
10free pages
5concepts
34%of the exam
Questions 6–10
- 6
In the constructor of a Python class, what does the 'self' parameter refer to?
Select an answer first - 7
Which code snippet correctly uses self to bind an instance attribute in a constructor?
Select an answer first - 8
Consider the following class: class Book: def __init__(self, title, author): self.title = title self.author = author What is the initial state of a Book object created with Book('1984', 'George Orwell')?
Select an answer first - 9
What is the effect of passing arguments to a class constructor in Python?
Select an answer first - 10
What is true about a class that does not define an __init__ method?
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.