Resource Library
Below you can find all of the different resources in the Guide: practice problems, former Google interview questions, online courses, videos, and more.
Back to all resources
Test your knowledge of maps/dictionaries!
Test your knowledge of maps/dictionaries with this short quiz. Even if you're not an expert, this quiz will give you immediate feedback to help you better understand the concepts.
Quiz
1. True or False: A key can not appear more than once in a map/dictionary
A key is unique within a map/dictionary. That is, a particular key can appear at most one time.
2. A map/dictionary is created add the following key-value pairs are added in the following order: {"a" : 2}, {"b": 3}, {"a", 4}, {"c", 5}. What is the value associated with the key "a"?
If you add a value to a map/dictionary with a key that already exist, that new value will replace the original value.
3. True or False: A map/dictionary stores values in a specific order
Values in a map/dictionary are unordered. There is no explicit beginning or end.
4. What's the Big-O run time for inserting a value into a hash table/dictionary?
Hash tables/dictionaries allow values to be inserted in O(1) time.