MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In this type of data structures, data values of different types are grouped, as in structures and classes. Refer to ____
A
Homogenous
B
Non-homogenous
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -non-homogenous. Type of data structures, data values of different types are grouped and stored.

Detailed explanation-2: -What is the difference between Homogeneous/Heterogeneous data structure? Homogeneous Data Structure – Data elements will be of same data type (ex: Array). Heterogeneous Data Structure – Data elements may not be of same data type (ex: List, Tuples, Sets etc…).

Detailed explanation-3: -Homogeneous and Non-homogeneous data structures Homogeneous data structure: Homogeneous data structures are those in which data of same type can be stored. For example, Array, stack, queue, tree and graph.

Detailed explanation-4: -The array is a data structure used to store homogeneous elements at contiguous locations. The size of an array must be provided before storing data.

There is 1 question to complete.