
Python InstitutePCAD - Certified Associate in Data Analytics with Python
Domain 2Objective 3
Object-Oriented Programming for Data Modeling PCAD-31 Practice Questions (Page 1)
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 1–5
- 1
What is the purpose of prefixing an attribute name with two underscores (e.g., `__balance`) in a Python class?
Select an answer first - 2
Which module provides the `copy` and `deepcopy` functions in Python?
Select an answer first - 3
What is a key advantage of using a `namedtuple` over a regular tuple?
Select an answer first - 4
Why must `__hash__` be consistent with `__eq__`?
Select an answer first - 5
A data model represents an Order that contains multiple OrderLine items. Each OrderLine has a product and a quantity. The analyst needs to model this so that an Order owns its OrderLines, and when an Order is deleted, its OrderLines are also removed. Which relationship type should be used?
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.