🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.unordered_map
  2. B.map
  3. C.vector
  4. 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 →