Topic / 90 questions

Data Structures MCQs

Page 5 of Data Structures multiple-choice questions with answers. Tap an option to check yourself.

Page 5 of 5

Advertisement
Question 85 Data Structures

Why does a dynamic array such as C++ std::vector achieve amortised O(1) time for appending elements?

Correct answer C. It grows its capacity geometrically, so expensive reallocations happen rarely

Open question
Advertisement
Question 90 Data Structures

What does an abstract data type (ADT) specify?

Correct answer D. The operations on the data and their behaviour, without fixing the implementation

Open question