Question 80 of 498
Mutable vs Immutable Data Types in Python
Which THREE of the following statements about Python data types are correct? (Choose three.)
Quick Answer
The answer is that dictionaries are mutable, while tuples are immutable. This distinction is fundamental to understanding Python data types because mutability determines whether an object’s state can be changed after creation. Dictionaries allow you to add, remove, or modify key-value pairs, making them mutable, whereas tuples, once defined, cannot have their elements altered, added, or removed—this immutability is what makes tuples hashable and usable as dictionary keys, unlike lists. On the Certified Entry-Level Python Programmer PCEP exam, this concept tests your grasp of core data type behavior, often appearing in multiple-select questions that ask you to identify which statements about mutability are correct. A common trap is confusing tuples with lists, since both store ordered sequences, but remember: lists are mutable and tuples are not. For a quick memory tip, think of a tuple as a “locked list”—once you pack it, you cannot change its contents.
⚠ Common exam trap
It's easy for candidates to confuse the immutability of strings and tuples with the mutability of lists and dictionaries, or incorrectly assume sets are immutable because their elements must be immutable.
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
✓
Tuples are immutable.
Tuples in Python are immutable, meaning once created, their elements cannot be changed, added, or removed. This immutability makes tuples hashable and usable as dictionary keys, unlike lists.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Strings are mutable.
Why it's wrong here
Strings are immutable.
- ✗
Sets are immutable.
Why it's wrong here
Sets are mutable (though elements must be immutable).
- ✓
Tuples are immutable.
Why this is correct
Tuples cannot be changed after creation.
- ✓
Lists are mutable.
Why this is correct
Lists can be changed after creation.
- ✓
Dictionaries are mutable.
Why this is correct
Dictionaries can be modified.
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 →
Same concept, more angles
1 more way this is tested on PCEP
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Which THREE of the following are Python data types? (Choose three.)
medium- ✓ A.float
- ✓ B.list
- C.char
- ✓ D.dict
- E.record
Why A: A is correct because `float` is a built-in Python numeric data type used to represent floating-point numbers (e.g., 3.14, -0.001). It is one of the core immutable types in Python, distinct from integers and complex numbers.
Last reviewed: Jun 11, 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.