
Python InstitutePCAP - Certified Associate Python Programmer
Domain 5Objective 1
PCAP-31-03 5.1 Build Complex Lists Using List Comprehensions 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 43 practice questions to prepare you well beyond it. (estimate)
43questions here
9free pages
2concepts
22%of the exam
Questions 1–5
- 1
Which list comprehension correctly creates a list of even numbers from 0 to 10 (inclusive)?
Select an answer first - 2
Given the list `words = ['apple', 'banana', 'cherry', 'date']`, which comprehension builds a list of words that start with the letter 'a'?
Select an answer first - 3
Which nested list comprehension correctly produces a 3x3 matrix with values 0, 1, 2 in each row?
Select an answer first - 4
Which nested list comprehension flattens the matrix `matrix = [[1,2],[3,4]]` into a single list `[1,2,3,4]`?
Select an answer first - 5
A data analyst needs to produce a list of all even numbers from 0 to 20, but only those that are also multiples of 3. They want a single, readable line of code. Which list comprehension should they use?
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.