Courseiva

PCEP Practice Question: Data Types, Variables, Basic I/O and Operators

Match each Python data structure to its characteristic.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Ordered, immutable sequence of items

Unordered collection of unique items

Mapping of key-value pairs

Ordered, mutable sequence of items

Immutable sequence of characters

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

List: mutable, ordered, allows duplicates

Python data structures have distinct properties: lists and tuples are ordered sequences (lists mutable, tuples immutable); sets are unordered and contain unique elements; dictionaries map keys to values. Common confusions include mixing mutability/order between lists and tuples, and assuming sets maintain order.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • List: mutable, ordered, allows duplicates

    Why this is correct

    Lists are mutable sequences that maintain insertion order and allow duplicate values.

  • Tuple: immutable, ordered, allows duplicates

    Why this is correct

    Tuples are immutable sequences that maintain order and can contain duplicates.

  • Set: mutable, unordered, no duplicates

    Why this is correct

    Sets are mutable collections that are unordered (no index) and enforce uniqueness of elements.

  • Dictionary: mutable mapping with key-value pairs

    Why this is correct

    Dictionaries store data in key-value pairs, are mutable, and (as of Python 3.7) maintain insertion order.

  • List: immutable and ordered

    Why it's wrong here

    Incorrect — lists are mutable, not immutable. This describes a tuple.

  • Set: ordered collection of elements

    Why it's wrong here

    Incorrect — sets are unordered. Ordered collections are lists or tuples.

About these practice questions

Courseiva writes every PCEP question from scratch — 498 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.