Question 148

In a circular queue of size n, the queue is full when:

  1. A(rear + 1) % n == front
  2. Brear == front
  3. Cfront == 0
  4. Drear == n
Show answerHide answer

Correct answer: (A) (rear + 1) % n == front

Explanation

One slot is kept empty to distinguish full from empty.

From DSSSB TGT Computer Science Full Mock Test 2

This is question 148 of DSSSB TGT Computer Science Full Mock Test 2. 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.