DSU IMPQ by Campusify
DSU IMPQ by Campusify
IMP QUESTION
(2 Marks)
(4 Marks)
(2 Marks)
(4 Marks)
3) Sort the following numbers in ascending order using Insertion sort: (CO2)
25,15,4,103,62,9
4) Differentiate between Binary search and Linear search with respect to any four parameters.
(CO2)
5) Find the position of element 29 using Binary search method in an array given as : (CO2)
(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 in a singly linked list. (CO3)
8) Create a singly 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) Write a ‘C’ function for searching a node in singly linked list. (CO3)
11) Write a ‘C’ function to count number of nodes in singly linked list. (CO3)
12) Create a singly list using data field 15,20,22,58,60. Search a node 22 from the SLL and
show procedure step-by-step with the help of diagram from start to end. (CO3)
13) Differentiate between Static and Dynamic memory allocation. (CO3)
(2 Marks)
(4 Marks)
(2 Marks)
(4 Marks)
6) Show the effect of INSERT and DELETE operation onto the linear queue of size 10. The
linear queue sequential contains 10,20,30,40 and 50 where 10 is at front queue. Show
diagrammatically the effect of (CO5)
ii) INSERT 75
iii) INSERT 85
iv) DELETE
v) INSERT 60
vi) DELETE
vii) INSERT 90
7) Differentiate between Stack and Queue with respect to any four parameters. (CO5)
8) Write a neat sketch explain working of priority queue. (CO5)
9) Write a program for insert and delete operation to be performed on queue. (CO5)
10) Draw and explain construction of circular queue. (CO5)
11) Describe queue full and queue empty operation conditions on linear queue with suitable
diagram.. (CO5)
(2 Marks)
(4 Marks)
i) Degree of tree:
ii) Degree of node B:
iii) Level of node H:
iv) Indegree of node C:
v) Outdegree of node B:
vi) Height of the degree: