Data Structure 2019 Winter Paper Solution
Q1 a ) define primitive and non-primitive data types with examples. 03 Ans: primitive data types primitive-data types also called system-defined data types are data types that already defined by the system. primitive-data types are pre-defined in programming languages for use. Examples of these data types are int, float, and characters, In some language the bool is also an example of a primitive data type. Primitive-data types has no additional methods. non-primitive data types non-primitive data types also called user-defined data types are data types that are defined or created by the user as per the need. It can be a group of primitive-data types Primitive-data types have additional methods. Examples of these data types are array and string, structure, pointers, In language like c++ and java we have the classes as non-primitive data type or user-defined data types. b ) Differentiate linear and non-linear data structures. 04 Ans: [su_table] Linear Data Structure Non-Linear Da...