Which of the following is a mapped data type?

2025

Which of the following is a mapped data type?

  1. A.

    List

  2. B.

    Sets

  3. C.

    Dictionary

  4. D.

    Boolean

Attempted by 143 students.

Show answer & explanation

Correct answer: C

A mapped data type stores elements using a key–value association, allowing access via keys instead of indices.

In Python, a dictionary (dict) is the primary mapped type, implementing a hash-based mapping structure.

Explore the full course: Bpsc