1. Home
  2. Computer Science MCQs
  3. C++ and Object-Oriented Programming
  4. Which STL container behaves like a dynamically resizable…

Added 30 Nov -0001

Which STL container behaves like a dynamically resizable array?

  1. vector Correct answer
  2. map
  3. set
  4. stack

Correct answer

A. vector

12 views

MCQSEXAM

Explanation

vector stores elements contiguously and grows automatically as needed.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C++ and Object-Oriented Programming MCQs

Practise all C++ and Object-Oriented Programming MCQs

Similar MCQs