DSU Extraquestions
DSU Extraquestions
(2Marks)
(4Marks)
(2 Marks)
(4 Marks)
3)Sort the following numbers in ascending order using Insertion sort: (C02)
25 15A 10362 9
(4Marks)
115,21,3,29, 17,2,43
(2 Marks)
6)Write an algorithm to delete a node at the beginning from a singly linked list.(CO3)
7) Write an algorithm to delete an intermediate node ina singly linked list.(CO3)
8)Create asingly linked list using data fields 10,20,30,40,50 and show procedure step-by-step
with the help of diagram from start to end. (CO3)
9)Write an algorithm to insert a new node at the beginning in singly linked list. (CO3)
10) Writea C function for searching a node in singly linked list. (O3)
11) Write a 'C function to count number of nodes in singly linked |ist. (CO3)
12) Create a singly listusing data field |5,20,22,58,60.Search a node 22 from the SLLand
show procedure step-by-stepwith the help of diagram from start to end. (O3)
13) Differentiate between Static and Dynamic memory allocation. (CO3)
(2Marks)
(4 Marks)
10, 20,30,40, 50 and 60being at top of the stack. Show diagrammatically the effect of
(CO4)
i) PUSH 55
i) PUSH 70
iii) POP
iv) POP
9)Convert the infix expression to its postfix expression using stack ((A+B)*D (E-F), Show
diagrammnatically each step of conversion. (CO4)
10) Evaluate the following postfix expression. (C04)
4,6,24, +, *,6.3,/, -
11) Write amenu driven "C"program to implement stack using array with the following menu.
(CO4)
)
ii)
Push
Pop
ii) Display
iv) exit
Chapter no 5:Queue
(2 Marks)
(4Marks)
9) Writea program for insert and delete operation to be performed on queue. (CO5)
10) Draw and explain construction circular queue. (COS)
I)
of
Describequeue full and queue empty operation conditions on linear queue with suitable
diagram. (COS)
Chapter no 6:Tree
(2Maria)
(4Marks)
1) Degree of tree:
8)Frotm the given tree, complete thefollowing answers.(C06)
i) Degree of tree:
Degree of node B:
im) Level ofnode H:
iv) Indegree of node C:
Outdegree of node B:
vi) Height of the degree: