
Python InstitutePCPP1 - Certified Professional Python Programmer 1
Domain 2Objective 3
PCPP-32-101 2.3 Employ PEP 257 Conventions and Related Standards PCPP-32-1 Practice Questions (Page 1)
Part of the Coding Conventions, Best Practices, and Standardization domain, which accounts for 12% of the PCPP-32-1 exam. Python Institute does not publish an official question count, but from its 65-minute exam (~25–45 total, ~3–5 in this domain), expect 1–2 from this objective — we provide 21 practice questions to prepare you well beyond it. (estimate)
21questions here
5free pages
11concepts
12%of the exam
Questions 1–5
- 1
A developer is building a CLI tool that lists the documentation of all public functions in a module. The tool must display the docstring of each function when the user requests help. The developer wants to retrieve the docstring programmatically without importing the `inspect` module. Which approach should the developer use?
Select an answer first - 2
When might it be more appropriate to document types in a docstring rather than using annotations?
Select an answer first - 3
Which of the following is a recognized docstring format that uses sections like 'Args:' and 'Returns:'?
Select an answer first - 4
For a class docstring, what additional information is commonly included after the summary line?
Select an answer first - 5
What does PEP 484 primarily define?
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. “PCPP-32-1” is a trademark of its owner, used for identification only.