CBSE Class 11 Computer Science Question 22 of 112

Dictionaries — Question 2

Back to all questions
2
Question

Question 2

Dictionaries are also called ...............

  1. mappings
  2. hashes
  3. associative arrays
  4. all of these
Answer

all of these

Reason — Dictionaries are called as:

  1. mappings because a dictionary represents a mapping from keys to values that means each key "maps to" a value.
  2. hashes because the keys of a dictionary in python are generated internally by a hashing function.
  3. Associative arrays because it is an abstract data type that can also holds data in (key, value) pairs just like physical dictionary.