
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 5)
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 21–21
- 21
A developer is reviewing a colleague's code and finds the following snippet: ```python def process_data(data): # This function processes the data and returns a list of results. results = [] for item in data: # Skip invalid items. if item is not None: results.append(item * 2) return results ``` The team's linter (pydocstyle) is configured to enforce PEP 257. What issue will pydocstyle report?
Select an answer first
Finished these 1 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to PCPP-32-1
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.