Q. Which STL container stores key-value pairs and provides fast retrieval based on keys?

  • (A) vector
  • (B) map
  • (C) stack
  • (D) queue
πŸ’¬ Discuss
βœ… Correct Answer: (B) map
Explanation: The 'map' container in the STL stores key-value pairs and allows fast key-based lookups.
Explanation by: Praveen Singh
The 'map' container in the STL stores key-value pairs and allows fast key-based lookups.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
115
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
95%
Success Rate