Question: Which data structure allows for both LIFO and FIFO operations?
Options:
Correct Answer: Deque
Solution:
A Deque (double-ended queue) allows for both LIFO (Last In First Out) and FIFO (First In First Out) operations.