question archive QUESTION 1) unlike lists, a dictionary can only hold elements of the same data type
Subject:Computer SciencePrice:2.87 Bought7
QUESTION 1) unlike lists, a dictionary can only hold elements of the same data type.
True
False
QUESTION 2) Dictionaries, while normally use names to reference an element, can also use index values.
True
False
Answer:
1)
Unlike lists, dictionaries can hold any type of data as elements.
Therefore the given statement is “False”.
2)
Unlike lists, dictionaries are unordered sets of elements. Each element in the dictionary is associated with a key(name).Since dictionary does not support indexing, keys(names),are used to uniquely identify the elements.
Therefore the given statement is “False”.