Skip to main contentSkip to solution

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

✅ Correct Option: 1

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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question