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

  • question_answer
    Consider a Stack with TOP=-1 and Size = 9
    What will be the value of TOP when an element is deleted from the stack.

    A) 0        

    B) 1     

    C) -1 

    D) underflow

    Correct Answer: C

    Solution :

      [c] At starting the value of TOP is -1 that it is an empty stack and if you try to delete an element from empty stack, then it will give "underflow". But it cannot change the value of TOP and the final value of TOP is -1.       


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