← Quiz: STL Containers: all 9 questions
Quiz: STL Containers · Question 1 of 9
Which container keeps keys in sorted order?
Which container keeps keys in sorted order?
- A.unordered_map
- B.map
- C.vector
- D.queue
Answer & explanation
Correct answer: map
map is a balanced binary search tree ordered by key.
Can you get the rest right without peeking?
Take the timed Quiz: STL Containers quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →