Multiple choice technology programming languages

which of the following is not an associative container

  1. map

  2. multiset

  3. priority queue

  4. multimap

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Priority queue is a container adaptor, not an associative container. It adapts sequential containers (like vector or deque) to provide priority-based access, whereas associative containers (map, multimap, set, multiset) use tree-based key-value lookup.