Question 180Asked in CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)

In a circular queue using arrays, the rear is at index 4, front is at index 2, and capacity = 5. Which expression checks if the queue is full?

  1. A(rear + 1 == front)
  2. B(rear == front - 1)
  3. C(rear == front)
  4. D((rear + 1) % capacity == front)
Show answerHide answer

Correct answer: (D) ((rear + 1) % capacity == front)

From CIL MT Systems PYQ, 24 Aug 2026 (3:00 PM, CBT-26)

This is question 180 of CIL MT Systems PYQ, 24 Aug 2026 (3:00 PM, CBT-26). 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.