Complete the sentence to describe a hash map.
A hash map stores data as key[1]value pairs.
A hash map stores data as key:value pairs, where each key maps to a value.
Complete the sentence to describe a hash set.
A hash set stores only unique [1] without any associated values.A hash set stores only unique keys (or elements) without associated values.
Fix the error in the statement about hash maps.
In a hash map, each [1] must be unique, but values can repeat.In a hash map, keys must be unique to identify values, but values can be duplicated.
Fill both blanks to compare hash map and hash set.
A hash map stores [1] pairs, while a hash set stores only [2].
A hash map stores key-value pairs, while a hash set stores only unique keys (elements).
Fill all three blanks to complete the differences between hash map and hash set.
In a hash map, [1] are unique and map to [2], but in a hash set, only [3] are stored.
In a hash map, keys are unique and map to values, but in a hash set, only unique elements (keys) are stored without values.
