DSU Important Questios
DSU Important Questios
DSU Important Questios
50,2,6,22,3,39,49,25,18,5
14) Sort the following numbers in ascending order using Bubble sort.
29,35,3,8,11,15,56,12,1,4,85,5
15) Write the steps for performing selection sort for given elements of array.
37,12,4,90,49,23,-19
1) Explain the concept of information, Next, Null Pointer and empty list with respect to link list. 2) 2)
What is node in singly linked list. Explain with an example.
3) List and define operations of linked list
3) What is dynamic memory allocation?
4) List any four applications of linked list?
5) List types of lists.
6) Explain insertion of new node at start and at end in singly linked list.
7) Write an algorithm to insert a node in between in a link list
8) Write an algorithm to insert a new node as the last of a singly linked list. Give example.
9) Write an algorithm to delete a node at the beginning from a singly linked list.
10) Write an algorithm to delete an intermediate node in a singly linked list.
11) Write an algorithm to traverse a singly linked list.
12) 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.
13) Write a ‘C’ function for searching a node in singly linked list.
14) Write a ‘C’ function to count number of nodes in singly linked list.
15) 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.
16) Differentiate between Static and Dynamic memory allocation.
17) Describe doubly linked list with an example.
18) Distinguish between singly linked list and doubly lined list
19) Differentiate between linear linked list, circular linked list and doubly linked list.
Chapter no 4: Stack
Chapter no 5: Queue
Chapter no 6: Tree
1) State the following term.
i) Leaf node of a tree
ii) Degree of a tree
2) Define the following terms.
i) Sibling
ii) Depth of tree
3) Define
i) Binary tree
ii) Binary search tree
4) Draw the tree structure of the following expression.
(a-3b)*(2x)
5) Traverse the following tree by the in-order and pre-order.
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: