Q. Which STL container stores key-value pairs and provides fast retrieval based on keys?
β
Correct Answer: (B)
map
Explanation: The 'map' container in the STL stores key-value pairs and allows fast key-based lookups.