12th Class Computers Science Sample Paper Data Structure - Sample Paper-2

  • question_answer
    Consider a Queue with rear=8 and Size = 9 What will be the value of rear when an element is insert from the queue.

    A) 9        

    B) 8     

    C) overflow           

    D) underflow

    Correct Answer: D

    Solution :

    [d] At starting the value of rear is 8 and the size is given as 9 that queue is full and if you try to insert an element into full queue, then it will give "overflow". But it cannot change the value of rear and its final value is 8.


You need to login to perform this action.
You will be redirected in 3 sec spinner