Which of the following is a linear data structure?
(A) Deque
(B) Queue
(C) Stack
(D) Tree
Which of the following is a linear data structure?
(A) Deque
(B) Queue
(C) Stack
(D) Tree
Solution
✅ Correct Option: 1
A linear data structure stores elements in a sequence, where each element has one predecessor and one successor (except the first and last). Deque, queue and stack all store elements this way, with insertion and deletion at the ends. So (A), (B) and (C) are linear.
Tree: a non-linear (hierarchical) structure, because one node can have several children.
Related questions:
2025: 16 May Shift 1
2026: 13 May Shift 2
2025: 21 May Shift 1
2026: 21 May Shift 1
2026: 21 May Shift 1
