Which of the following data structures stores elements in a non-linear relationship?
Options
- A. Stack
- B. Queue
- C. Array
- D. More than one of the above
- E. None of the above
E. None of the above
Explanations:
A non-linear data structure stores elements in a hierarchical or network relationship, not sequentially.
Elements are arranged in sequence (one after another):
Stack
Queue
Array
These are linear, not non-linear.
Examples:
Tree
Graph
(A) Stack → Linear ❌
(B) Queue → Linear ❌
(C) Array → Linear ❌
Since none of the given options are non-linear, the correct answer is:
✅ (E) None of the above.
Attempt Quiz Now:
BPSC Tre 4.0 DSA Practice Set