
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 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 33 practice questions to prepare you well beyond it. (estimate)
33questions here
7free pages
12concepts
12%of the exam
Questions 21–25
- 21
Which tool is specifically designed to check Python code against PEP 8 style guidelines and report violations such as incorrect indentation or line length?
Select an answer first - 22
What does PEP 8 recommend regarding the use of single versus double quotes for string literals?
Select an answer first - 23
What is the primary benefit of using a trailing comma in a multi-line list or dictionary?
Select an answer first - 24
When must a Python source file include an explicit encoding declaration?
Select an answer first - 25
Your team uses pylint with a custom configuration that enforces PEP 8 import grouping. A developer has a module that imports `json` (standard), `numpy` (third-party), and `config` (local). The developer also uses `from config import *` to bring in several names. Pylint reports errors for both import order and wildcard imports. Which change should the developer make?
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.