Answer explained
Describe the types of data structure.
A data structure organizes data. Main classifications are:
1. Primitive—basic types such as int, char, float and pointer.
2. Non-primitive—(a) Linear: array, linked list, stack and queue, whose elements form a sequence; (b) Non-linear: tree and graph, which represent hierarchical or network relationships.
3. Static—size fixed beforehand, such as a fixed array; dynamic—size changes at run time, such as a linked list.
4. Homogeneous structures contain one element type; non-homogeneous structures such as records contain different types.
Choice depends on operations: arrays give direct access, linked lists flexible insertion, stacks LIFO, queues FIFO, trees hierarchy and graphs general connections.