PCEP Control Flow, Loops, Lists and Logic Practice Question
Which THREE of the following are valid list operations?
⚠ Common exam trap
Python Institute often tests the distinction between list methods and methods from other data structures (like `add()` for sets or `push()` for stacks) to catch candidates who confuse Python's list API with those of other languages or collections.
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
✓
my_list.extend([5,6])
The `extend()` method appends each element of the iterable (here, the list `[5,6]`) to the end of the original list, modifying it in place. This is a valid list operation in Python that adds multiple elements at once.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
my_list.add(5)
Why it's wrong here
No add method.
- ✓
my_list.extend([5,6])
Why this is correct
Valid method.
- ✗
my_list.push(5)
Why it's wrong here
No push method for lists.
- ✓
my_list.insert(0,5)
Why this is correct
Valid method.
- ✓
my_list.append(5)
Why this is correct
Valid method.
Go deeper
Related to this question
About these practice questions
One of 498 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.