
Python InstitutePCAP - Certified Associate Python Programmer
Domain 4Objective 4
PCAP-31-03 4.4 Discover the Class Structure 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 21 practice questions to prepare you well beyond it. (estimate)
21questions here
5free pages
6concepts
34%of the exam
Questions 6–10
- 6
What does the __name__ property of a class return?
Select an answer first - 7
What does the __bases__ property of a class return?
Select an answer first - 8
A developer is working with a class hierarchy where a base class defines a class method 'process', and a derived class overrides it. The developer needs to verify that the derived class has the 'process' method, regardless of whether it is overridden or inherited. Which check correctly performs this?
Select an answer first - 9
Which of the following is TRUE about using hasattr() on a class?
Select an answer first - 10
Which of the following is an example of introspection in Python?
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.