Consider the following queue of character, implemented as a circular queue…

BEL Probationary Engineer · 2023 · Computer Science · Technical

Consider the following queue of character, implemented as a circular queue using an array of 7 one-based memory cells, Front = 3 Rear = 4 Queue: –, –, A, B, __, __, __, where ‘–’, denote empty memory cell. What is the value of front and rear after the following operation? Enqueue C, D

Dequeue

Enqueue E, F

Dequeue

  1. A.

    Front = 3 Rear = 6

  2. B.

    Front = 4 Rear = 7

  3. C.

    Front = 5 Rear = 1

  4. D.

    Front = 1 Rear = 4

Attempted by 300 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…