Which data structure operates on a last-in-first-out (LIFO) basis?
A) Queue
B) Stack
C) Tree
D) Heap
A) Queue
B) Stack
C) Tree
D) Heap