GK Question

technology medium mcq

Which data structure follows Last-In-First-Out (LIFO) principle?

  1. Queue
  2. Array
  3. Stack
  4. Linked List

Answer: Stack

Stack is a linear data structure that follows LIFO principle - the last element added is the first to be removed. Operations include push (add) and pop (remove). Used in function call management, expression evaluation, and undo mechanisms.

Topic Database & Programming
Exam Relevance SSC JE, Banking IT, Railway