Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCEP - Certified Entry-Level Python Programmer

Domain 4Objective 2

PCEP-30-02 4.2 Organize Interaction Between the Function and Its Environment PCEP-30 Practice Questions (Page 5)

Part of the Functions and Exceptions domain, which accounts for 28% of the PCEP-30 exam. Python Institute does not publish an official question count, but from its 45-minute exam (~20–30 total, ~6–8 in this domain), expect 2–2 from this objective — we provide 31 practice questions to prepare you well beyond it. (estimate)

31questions here
7free pages
8concepts
28%of the exam

Questions 21–25

  1. 21foundation · easy

    What is the rule for combining positional and keyword arguments in a single function call?

    Select an answer first
  2. 22foundation · easy

    What does it mean when a local variable shadows a global variable?

    Select an answer first
  3. 23foundation · easy

    For `def configure(host, port):`, which statement is true about keyword arguments?

    Select an answer first
  4. 24foundation · easy

    In the function definition `def greet(name):`, what is `name` technically called?

    Select an answer first
  5. 25expert · hard

    A developer has a global variable `total = 0` and a function that needs to add to it. The function also uses a local variable named `total` for a temporary calculation. Which approach correctly updates the global `total` while still using a local `total`?

    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. “PCEP-30” is a trademark of its owner, used for identification only.