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?

  1. A.

    Queues use two ends of the structure but stacks use only one

  2. B.

    Queues require linked lists but stacks do not

  3. C.

    Stacks use two ends of the structure but queues use only one

  4. 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.

Explore the full course: Btsc Lab Assistant