PreliumDSU 24-25
PreliumDSU 24-25
Seat No.
Marks
1. Attempt any FIVE of the following : 10
(a) Write any two operations performed on the stack.
(b) Define the term overflow and underflow with respect to stack.
(c) Define the following term w.r.t. tree: (i) In-degree (ii) out-degree.
(d) State the following terms : (i) Leaf node of a tree (ii) Degree of a tree
(e) convert infix expression into prefix expression: (A+B)*(C/G)+F.
(f) Define : (i) General tree (ii) Binary tree
[1 of 2] P.T.O.
3. Attempt any FIVE of the following : 20
(a) Write a program to implement a stack with push, pop and display operations.
(b) Construct a binary search tree for following elements: 30,100,90,15,2,25,36,72,78,10
show each step of construction of BST.
(c) Convert following expression into postfix form. Give stepwise procedure.
A + B ↑ C * (D / E) – F / G
30, 100, 90, 15, 2, 25, 36, 72, 78, 10 show each step of construction of BST.
(f) For given binary tree write in-order, pre-order and post-order traversal.
[2 of 2] P.T.O.