
Python InstitutePCAD - Certified Associate in Data Analytics with Python
Domain 2Objective 3
Object-Oriented Programming for Data Modeling PCAD-31 Practice Questions (Page 3)
Part of the Programming and Database Skills domain, which accounts for 33.3% of the PCAD-31 exam. Python Institute does not publish an official question count, but from its 60-minute exam (~25–40 total, ~8–8 in this domain), expect 2–2 from this objective — we provide 26 practice questions to prepare you well beyond it. (estimate)
26questions here
6free pages
12concepts
33.3%of the exam
Questions 11–15
- 11
What does the `@dataclass` decorator automatically generate for a class?
Select an answer first - 12
Which method is called when an object is about to be destroyed (garbage collected)?
Select an answer first - 13
A data class Employee has fields employee_id (int) and name (str). The analyst wants to sort a list of Employee objects by employee_id in ascending order. Which implementation is correct?
Select an answer first - 14
What does the built-in `id()` function return for an object?
Select an answer first - 15
What is the purpose of implementing `__repr__` in a class?
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. “PCAD-31” is a trademark of its owner, used for identification only.