We know that homogeneous data means the same type of data and non-homogeneous means different types of data. In computer science, types refer to integer, float and character. Now, we know that an array is a data structure which allocates the same type of data but the record is a data structure which allocates different types of data. So, an array is suitable for homogeneous data and record is suitable for non-homogeneous data.
There is no order is maintained in the record to store the different data types but in the array, an array index is used for maintaining the order of the same data type.
A hierarchical structure is possible in the record but in a linear array, data are logically stored sequentially in blocks.
Hence:
For the given problem, the option "\\color{blue}{(D)}" is correct.
Comments
Leave a comment