OBJECT ORIENTED DATA STRUCTURE
OBJECT ORIENTED DATA STRUCTURE
OBJECT ORIENTED DATA STRUCTURE
Instructions to Candidates :—
(1) All questions carry equal marks. Read internal choice carefully.
(2) All six questions are compulsory.
(3) Assume suitable data wherever necessary.
(4) Illustrate answers with code and examples wherever necessary.
1. (a) Explain use of following C++ operators with proper syntax and example
for each :
(i) :: (ii) new
(iii) << 5(CO 1)
(b) What is difference between Object Oriented Programming and Procedure Oriented
Programming ? Explain basic concepts of Object Oriented programming.
5(CO 1)
4. (a) Write program to find sum of all diagonal elements of matrix of size 5x5.
5(CO 2,CO 3)
(b) Explain time and space complexity of an algorithm by giving suitable example.
5(CO 2,CO 3)
(c) What is stack ? Write steps to convert infix expression to postfix using
stack. 5(CO 2,CO 3)
OR
(b) Write an algorithm to delete a node from specific position in singly link
list. 5(CO 2,CO 3)
(c) What is double linked list ? Write steps for inserting node at the beginning
of double linked list. 5(CO 2,CO 3)