
Python InstitutePCAP - Certified Associate Python Programmer
Domain 5Objective 2
PCAP-31-03 5.2 Embed Lambda Functions into Code PCAP-31 Practice Questions (Page 1)
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 8 practice questions to prepare you well beyond it. (estimate)
8questions here
2free pages
5concepts
22%of the exam
Questions 1–5
- 1
A developer is reading code and sees the following: funcs = [lambda x: x + i for i in range(3)]. They call funcs[0](10). What is the result?
Select an answer first - 2
What is the output of the following code? numbers = [1, 2, 3, 4, 5, 6] result = list(filter(lambda x: x % 2 == 0, numbers)) print(result)
Select an answer first - 3
A developer is reviewing code and encounters the following line: f = lambda x, y=10: x + y. They call f(5). What is the result?
Select an answer first - 4
Which statement correctly describes a lambda function in Python?
Select an answer first - 5
What is a key difference between a lambda function and a regular function defined with def?
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. “PCAP-31” is a trademark of its owner, used for identification only.