Which of the following statements are TRUE about the stack?
(A) Stack is a linear list.
(B) It is LIFO list.
(C) The insertion and deletion can happen at both ends.
(D) The value top=-1 indicates the stack is empty.
Which of the following statements are TRUE about the stack?
(A) Stack is a linear list.
(B) It is LIFO list.
(C) The insertion and deletion can happen at both ends.
(D) The value top=-1 indicates the stack is empty.
Solution
A stack is a linear list in which insertion and deletion happen only at one end, called the top. The last element inserted is the first one removed, so it is a LIFO (Last In, First Out) list. In an array implementation, top = -1 is the usual way to show that the stack is empty. So (A), (B) and (D) are true.
Statement (C) is false: insertion and deletion at both ends describes a deque (double-ended queue), not a stack.
Related questions:
2026: 26 May Shift 1
2026: 23 May Shift 1
2026: 20 May Shift 1
2026: 23 May Shift 2