CBSE Class 12 Computer Science Question 20 of 63

Data Structures in Python — Question 3

Back to all questions
3
Question

Question 3

In a Stack, if a user tries to remove an element from an empty Stack, the situation is called:

  1. Underflow
  2. Empty collection
  3. Overflow
  4. Garbage collection
Answer

Underflow

Reason — In a stack, if a user attempts to remove an element from an empty stack, the situation is called "underflow". This occurs because there are no elements left in the stack to be removed.