Quiz

Make sure you collect yourself!

Question 1

True or false:

iter() is a method implemented for hash maps that returns all key-value pairs in the order they were added.

Question 2

Fill in the blank, using a method you learned in this chapter, to shorten the vector below by five elements.

Question 3

What is the printed output of the following?

Question 4

Fill in both blanks below so that the hash map has 32-bit unsigned integer keys and single character values.

Question 5

In light of your knowledge of how iter() behaves on hash maps, how does it behave for vectors?