Question:

Which of the following is not a non linear data structure ?

Show Hint

Non-linear = Branching (Trees, Graphs). Linear = Straight line (Arrays, Lists).
Updated On: Jun 6, 2026
  • Binary tree
  • Heap
  • Graph
  • char
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Data structures are classified based on how elements are organized and accessed. 1. Non-Linear Data Structures: In these structures, data is not organized in a sequential or linear fashion. Elements can be connected to multiple other elements.
Trees (Binary tree, Heaps): Hierarchical structures.
Graphs: Networks of nodes and edges. 2. Linear Data Structures: Data is organized sequentially. Examples include Arrays, Linked Lists, Stacks, and Queues. 3. Analyzing "char": The term char is a primitive data type, not a complex data structure. However, in the context of this question's classification, a single character variable does not have the branching or hierarchical properties of trees or graphs. Among the choices, it is the only one that is not a non-linear organization of data.
Was this answer helpful?
0
0

Top CUET PG Data Science A.I Cyber Security and Computer Sci. Questions

View More Questions

Top CUET PG Programming and Data Structures Questions

View More Questions