Courseiva

PCEP Computer Programming and Python Fundamentals Practice Question

Match each Python data type to its description.

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

Concepts
Matches

Whole numbers, e.g., 42

Numbers with decimal point, e.g., 3.14

Sequence of characters, e.g., 'hello'

Logical values True or False

Ordered, mutable collection of items

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

int: Whole numbers

The correct matches are: A (int - whole numbers), B (float - numbers with decimal point), D (bool - Boolean values True or False). Option C (str) is incorrect because strings are immutable sequences of characters, not mutable collections. Option E (list) is incorrect because lists are mutable collections, not immutable sequences. Option F (tuple) is incorrect because tuples are immutable sequences, not mutable collections.

Answer analysis

Option-by-option breakdown

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

  • int: Whole numbers

    Why this is correct

    Correct. int represents whole numbers without decimal points.

  • float: Numbers with decimal point

    Why this is correct

    Correct. float represents numbers with a decimal point or in scientific notation.

  • str: Ordered, mutable collection of items

    Why it's wrong here

    Incorrect. This describes a list, not a string. A string is an immutable sequence of characters.

  • bool: Boolean values True or False

    Why this is correct

    Correct. bool represents logical values True and False.

  • list: Immutable sequence of characters

    Why it's wrong here

    Incorrect. This describes a string, not a list. A list is a mutable ordered collection.

  • tuple: Ordered, mutable collection of items

    Why it's wrong here

    Incorrect. This describes a list, not a tuple. A tuple is an immutable ordered collection.

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 →

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.