Which of the following statements is TRUE with respect to differences between…
2018
Which of the following statements is TRUE with respect to differences between stacks and queues?
- A.
Queues use two ends of the structure but stacks use only one
- B.
Queues require linked lists but stacks do not
- C.
Stacks use two ends of the structure but queues use only one
- D.
Stacks require linked lists but queues do not
Attempted by 157 students.
Show answer & explanation
Correct answer: A
The correct option is A. A queue uses two separate ends: the Rear for insertion (Enqueue) and the Front for deletion (Dequeue). Conversely, a stack operates entirely at a single open end called the Top for both insertion (Push) and deletion (Pop) operations.