Computer Science

Dictionaries are also called ……………

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

Python Dictionaries

5 Likes

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.

Answered By

1 Like


Related Questions