Question: What is the main difference between a stack and a queue?
Options:
Correct Answer: Stack is LIFO, Queue is FIFO
Solution:
The main difference is that a stack operates in a Last In First Out (LIFO) manner, while a queue operates in a First In First Out (FIFO) manner.