Question 48Asked in BEL PE Computer Science, 17 Dec 2023 (8:30 AM)

Consider the following queue of character, implemented using array of 7 memory,

Consider the following queue of character, implemented using array of 7 memory, Front = 3 Rear = 4 Queue: –, –, A, B, __, __, __, where '–' denotes empty memory cell. What is the value of front and rear after the following operation? Enqueue C, D Dequeue Enqueue E, F Dequeue
  1. AFront = 5 Rear = 1
  2. BFront = 3 Rear = 6
  3. CFront = 4 Rear = 7
  4. DFront = 1 Rear = 4
Show answerHide answer

Correct answer: (A) Front = 5 Rear = 1

From BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM)

This is question 48 of BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.