
Python InstitutePCAP - Certified Associate Python Programmer
Domain 4Objective 4
PCAP-31-03 4.4 Discover the Class Structure PCAP-31 Practice Questions (Page 4)
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 21 practice questions to prepare you well beyond it. (estimate)
21questions here
5free pages
6concepts
34%of the exam
Questions 16–20
- 16
A developer is working with a class hierarchy: class A, class B(A), and class C(B). They need to verify that class C has access to a method defined in class A. Which check correctly confirms this?
Select an answer first - 17
A developer is debugging a multiple inheritance issue. They have a class D that inherits from B and C, where both B and C inherit from A. They need to determine if D directly inherits from A or only indirectly through B and C. Which check correctly answers this?
Select an answer first - 18
Which statement correctly describes the behavior of hasattr() when checking an object for an attribute?
Select an answer first - 19
What is the primary purpose of introspection in Python?
Select an answer first - 20
Given the code below, what is the output? class Vehicle: pass print(Vehicle.__name__)
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.