Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

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 6)

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 26–30

  1. 26foundation · easy

    According to PEP 8, how should spaces be used around binary operators like +, -, and =?

    Select an answer first
  2. 27foundation · easy

    Where should import statements be placed in a Python file according to PEP 8?

    Select an answer first
  3. 28foundation · easy

    In what order should import groups be arranged according to PEP 8?

    Select an answer first
  4. 29application · medium

    Your CI pipeline runs `pycodestyle` on every pull request. A developer's PR fails with an E501 error on a long line and an E201 error on a line with `foo( 1, 2 )`. What is the most appropriate way to resolve these failures?

    Select an answer first
  5. 30expert · hard

    Your team's flake8 configuration includes the pep8-naming plugin. A developer's PR contains `class httpClient`, `def parse_data()`, `MAX_RETRIES = 3`, and `_private_var`. The CI fails with an N801 error. Which name is causing the failure, and what is the correct fix?

    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.