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

  • question_answer
    Consider a Stack with TOP=3
    Diksha, Reena, Bhawna, Teena, ........................., What will be the value of TOP when "Pihu" and "Khushi" are added to the stack.

    A) 5        

    B) 6     

    C) 4                     

    D) None of the above

    Correct Answer: A

    Solution :

    [a] At starting the value of TOP is 3 and when you delete 2 elements i.e. Pihu and Khushi then it will increment by 2. So, the final value of TOP is 5


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