Question: 19
(Choose 1 answer)
How does a queue differ from a stack?
A. A queue operates on a LIFO principle, while a stack operates on a FIFO principle.
B. A queue operates on a FIFO principle, while a stack operates on a LIFO principle.
C. A queue can only store characters, while a stack can store any data type.
D. A queue is used for recursion, while a stack is used for sorting.