Computer Science
Dictionaries are also called ……………
- mappings
- hashes
- associative arrays
- all of these
Python Dictionaries
5 Likes
Answer
all of these
Reason — Dictionaries are called as:
- mappings because a dictionary represents a mapping from keys to values that means each key "maps to" a value.
- hashes because the keys of a dictionary in python are generated internally by a hashing function.
- 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
Can you remove key:value pairs from a dictionary and if so, how?
Dictionaries are …………… set of elements.
- sorted
- ordered
- unordered
- random
Dictionaries are …………. data types of Python.
- mutable
- immutable
- simple
- all of these
Which of the following functions will return the key, value pairs of a dictionary ?
- keys( )
- values( )
- items( )
- all of these