Skip to main contentSkip to solution

Solution

✅ Correct Option: 2

A stack follows LIFO (Last In, First Out): the element pushed last is the first one popped. Insertion (push) and deletion (pop) both happen at one end, called the top.


Option 1 (FIFO) and Option 3 (FCFS): these describe a queue, where the first element inserted is the first removed.

Option 4 (Round Robin): a CPU scheduling algorithm that gives each process a fixed time slice, not a data structure principle.

Memory trick: a stack of plates, where you take the top plate that was placed last.

Keyboard Shortcuts

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