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

BEL · Computer Science · Probationary Engineer · 2023

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 286 students.

Show answer

Correct answer: C

The worked solution is available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…