Data Structures

Question #1

Read the question, compare the options, and review the correct answer below.

CS301 · Midterm#1

I have implemented the queue with a linked list, keeping track of a front pointer and a rear
pointer. Which of these pointers will change during an insertion into an EMPTY queue?

  1. A
    Neither changes
  2. B
    Only front pointer changes
  3. C
    Only rear pointer changes.
  4. D
    Both change.
Show correct answer

Correct answer: D. Both change.

Check community answers against your course notes.
← More practice questionsTake a timed test