Question
Easy

In C++, which of the following is not a derived container under STL?

1
queue
2
deque
3
priority queue
4
stack
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Data Structures (Through C++)
Topic: Data Structure Concepts
Correct Answer
Option B
Explanation

The correct option is (2): The correct option is (2), deque (Double-Ended Queue). In the C++ Standard Template Library (STL), containers are fundamentally divided into sequence containers, associative containers, and container adaptors. The deque is a direct and fundamental sequence container, alongside vector and list. It is an independent data structure that manages its own memory (typically as a dynamic array of blocks) and provides full functionality, including constant-time insertion…Read More