MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A data structure that changes in size as a program needs it by allocating and de-allocating memory is about ____
A
Static data structures
B
Dynamic data structues
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -What is Dynamic Data Structure? In Dynamic data structure the size of the structure is not fixed and can be modified during the operations performed on it. Dynamic data structures are designed to facilitate change of data structures in the run time.

Detailed explanation-2: -When the allocation of memory performs at the compile time, then it is known as static memory. When the memory allocation is done at the execution or run time, then it is called dynamic memory allocation.

Detailed explanation-3: -A static data structure is one that has a fixed size and cannot change at run time A dynamic list is able to adapt to accommodate the data inside it and so it does not waste as much space.

There is 1 question to complete.