Question 27 of 498
PCEP Practice Question: Functions, Tuples, Dictionaries and Exceptions
Which THREE of the following are valid dictionary methods? (Choose three.)
⚠ Common exam trap
The PCEP exam often tests the distinction between list methods (like `.append()`) and dictionary methods, trapping candidates who confuse data structure operations across types.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
.values()
The `.values()` method returns a view object that displays a list of all the values in a dictionary. It is a built-in dictionary method in Python, making option A correct.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
.values()
Why this is correct
values returns a view of dictionary values.
- ✗
.append()
Why it's wrong here
append is a list method, not dictionary.
- ✗
.push()
Why it's wrong here
push is a list method, not dictionary.
- ✓
.keys()
Why this is correct
keys returns a view of dictionary keys.
- ✓
.get()
Why this is correct
get returns value for key or default.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jul 4, 2026
This PCEP practice question is part of Courseiva's free Python Institute certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCEP exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.