MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In ____ data structures all elements may or may not be of same type.
A
linear
B
non linear
C
homogeneous
D
non-homogeneous
Explanation: 

Detailed explanation-1: -Non-homogeneous data structure: Non-Homogeneous data structures are those in which data of different types can be stored. For Example, Linked List.

Detailed explanation-2: -An array is a linear data structure that collects elements of the same data type and stores them in contiguous and adjacent memory locations.

Detailed explanation-3: -The above question states that which is not used store the non-homogeneous data then the answer is array while the structure is used to store this type of data.

Detailed explanation-4: -Homogenous: It is a characteristic of data structures representing whether the data type of all elements is the same. Example-Array. Non-Homogenous: It is a characteristic of data structures representing whether the data type elements may or may not be the same.

There is 1 question to complete.