Skip to main contentSkip to solution

Trying to pop an element from an empty stack results into a special condition called __________.

Solution

✅ Correct Option: 2

Popping from an empty stack means there is no element left to remove, so the stack has "run under" its lowest limit. This condition is called underflow.


Option 1: overflow is the opposite case, pushing an element onto a stack that is already full.

Options 3 and 4: pushflow and popflow are not standard terms in data structures.

Keyboard Shortcuts

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