
Python InstitutePCPP1 - Certified Professional Python Programmer 1
Domain 2Objective 2
PCPP-32-101 2.2 Employ PEP 8 Guidelines, Conventions, and Best Practices PCPP-32-1 Practice Questions (Page 3)
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 33 practice questions to prepare you well beyond it. (estimate)
33questions here
7free pages
12concepts
12%of the exam
Questions 11–15
- 11
You are refactoring a module where a function definition and a function call both exceed 79 characters. The function has parameters `alpha`, `beta`, `gamma`, and `delta`. You want to keep the code PEP 8 compliant and make future parameter additions produce minimal diffs. Which approach should you take?
Select an answer first - 12
A developer has written the following names in a module: `MAX_RETRIES`, `class userProfile`, `def get_data()`, and `_internal_cache`. Which name violates PEP 8 naming conventions?
Select an answer first - 13
How many blank lines should separate top-level definitions (such as functions and classes) in a Python module according to PEP 8?
Select an answer first - 14
A junior developer wrote `def calculate( x , y=2 ):` and `result = calculate( 5 , y=3 )`. Which whitespace correction should you apply to comply with PEP 8?
Select an answer first - 15
What naming convention does PEP 8 recommend for function and variable names?
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.