
Python InstitutePCEP - Certified Entry-Level Python Programmer
Domain 3Objective 3
PCEP-30-02 3.3 Collect and Process Data Using Dictionaries PCEP-30 Practice Questions (Page 3)
Part of the Data Collections Tuples, Dictionaries, Lists, and Strings domain, which accounts for 25% of the PCEP-30 exam. Python Institute does not publish an official question count, but from its 45-minute exam (~20–30 total, ~5–8 in this domain), expect 1–2 from this objective — we provide 19 practice questions to prepare you well beyond it. (estimate)
19questions here
4free pages
9concepts
25%of the exam
Questions 11–15
- 11
Given `d = {'a': 1, 'b': 2}`, what does `d.items()` return?
Select an answer first - 12
Given `d = {'a': 1}`, what is the result of `d.get('b', 0)`?
Select an answer first - 13
A program maintains a dictionary `scores = {'alice': 10, 'bob': 20, 'carol': 30}`. The developer must remove the key `'bob'` and capture its value in a variable `removed` for logging. Which code accomplishes this?
Select an answer first - 14
Given `d = {'x': 10}`, what is the result of `'y' in d`?
Select an answer first - 15
Given `d = {'a': 1, 'b': 2}`, what does the following loop print? ```python for key in d: print(key) ```
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.