Question 3459 – 2018 July 22 NTA UGC NET Paper 1
December 3, 2023Question 17097 – NTA UGC NET JUNE-2023 Paper-2
December 3, 2023Question 17094 – NTA UGC NET JUNE-2023 Paper-2
Suppose a circular queue of capacity (n – 1) elements is implemented with an array of n elements. Assume that the insertion and deletion operations are carried out using REAR and FRONT as array index variables, respectively. Initially, REAR = FRONT = 0. The conditions to detect queue full and queue empty are
Correct Answer: A
Question 19 Explanation:
The correct conditions are:
EMPTY: REAR == FRONT, FULL: (REAR + 1) mod n == FRONT
EMPTY: REAR == FRONT , FULL: (REAR+1) mod n == FRONT
EMPTY: (FRONT+1) mod n == REAR,FULL: (REAR+1) mod n == FRONT
EMPTY: (REAR+1) mod n == FRONT,FULL: REAR == FRONT
EMPTY: REAR == FRONT,FULL: (FRONT+1) mod n == REAR empty
Subscribe
Login
0 Comments