CBSE Class 12 Computer Science Question 30 of 68

Data Structures - I : Linear Lists — Question 2

Back to all questions
2
Question

Question 2

Is data structure related to a data type ? Explain.

Answer

Yes, data structures are related to data types, but they are distinct concepts. A data type is a set of values with well-defined operations dictating its input-output behavior e.g., two strings cannot be multiplied. While a data structure is a named group of data of different data types stored in a specific way, capable of being processed as a single unit e.g., lists, arrays, stack. A data structure possesses well-defined operations, behavior, and properties. Data structures not only allow users to combine various data types into a group but also enable processing of the group as a single unit, thereby making things much simpler and easier.