Q. Last in First Out(LIFO)is implemented in

A
Queue
B
Array
C
Stack
D
List
Solution:
  • A stack is a container of objects that are inserted and removed according to the last-in first-out (LIFO) principle.
  • In the pushdown stacks only two operations are allowed: push the item into the stack, and pop the item out of the stack.
Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!