Question 69Asked in DSSSB PGT Computer Science (Technical), 11 Jul 2021

Which statement is true about condition of overflow in the circular Queue?

Which statement is true about condition of overflow in the circular Queue? I. Front = 1 and Rear = N II. Front = Rear + 1
  1. AOnly I
  2. BOnly II
  3. CBoth I and II
  4. DNeither I nor II
Show answerHide answer

Correct answer: (C) Both I and II

Explanation

In a 1-based circular queue of size N, it is full (overflow) when Front = 1 and Rear = N, or when Front = Rear + 1 (rear has wrapped round to just behind front).

From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021

This is question 69 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. 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.