Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

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

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 6–10

  1. 6application · medium

    A developer is writing a function that processes a list of user IDs. The team's documentation standard requires that the function's docstring include type information, but the codebase also uses type hints. The developer wants to avoid duplication and follow best practices. What should the developer do?

    Select an answer first
  2. 7foundation · easy

    Which tool is specifically designed to check that docstrings conform to PEP 257?

    Select an answer first
  3. 8foundation · easy

    How would you annotate a variable that holds a list of strings?

    Select an answer first
  4. 9foundation · easy

    According to PEP 257, what is the recommended format for a one-line docstring?

    Select an answer first
  5. 10foundation · easy

    Which typing construct is used to annotate a variable that can be either an integer or None?

    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.