Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCAP - Certified Associate Python Programmer

Domain 5Objective 3

PCAP-31-03 5.3 Define and Use Closures PCAP-31 Practice Questions (Page 2)

Part of the Miscellaneous (List Comprehensions, Lambdas, Closures, I/O) domain, which accounts for 22% of the PCAP-31 exam. Python Institute does not publish an official question count, but from its 65-minute exam (~25–45 total, ~6–10 in this domain), expect 1–2 from this objective — we provide 7 practice questions to prepare you well beyond it. (estimate)

7questions here
2free pages
3concepts
22%of the exam

Questions 6–7

  1. 6foundation · easy

    What is the output of the following code? def outer(): msg = "Hello" def inner(): return msg return inner func = outer() print(func())

    Select an answer first
  2. 7foundation · easy

    What is the output of the following code? def multiplier(n): def mul(x): return x * n return mul times3 = multiplier(3) times5 = multiplier(5) print(times3(4)) print(times5(4))

    Select an answer first
Finished these 2 questions?

Review the revealed explanations, or continue through the curriculum.

No more pagesBack to PCAP-31

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