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.
Go deeper
Related to this question
About these practice questions
One of 482 original PCEP practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.