MQP Dsa Bca
MQP Dsa Bca
SEMESTER II
Section A
Multiple Choice Questions (2 Marks each)
[Please answer all the questions]
1. The data structure which contains the hierarchical relationship between various elements is
called a ____________.
a) Linear Data Structure
b) Non-Linear Data Structure
c) Homogeneous Data Structure
d) Non-Homogeneous Data Structure
2. __________ is used in finding the location of the record with the given key value.
a) searching
b) traversing
c) sorting
d) deleting
3. Given pointer to a node X in a singly linked list. Only one pointer is given, pointer to head node is
not given, can we delete the node X from given linked list?
a) Possible if X is not last node
b) Possible if size of linked list is even
c) Possible if size of linked list is odd
d) Possible if X is not first node
4. ______ form of access is used to add and remove nodes from a queue.
a) LIFO, Last in First Out
b) FIFO, First in First Out
c) Both a and b
d) None of these
6. In the tree, the usual left pointer points to the ___________ of the node.
a) Root
b) First child
c) Leaf
d) Sibling
10. Which of the following sorting algorithms can be used to sort a random linked list with minimum
time complexity?
a) Insertion Sort
b) Quick Sort
c) Heap Sort
d) Merge Sort
Section B
SHORT ANSWERS (5 Marks each)
[Please answer Any Four questions in a separate page answer sheet especially provided for this purpose]
Section C
LONG ANSWERS (10 Marks each)
[Please answer Any Three questions in a separate page answer sheet especially provided for this purpose]
1. Write algorithms for creating a singly link list and inserting a node at a given position of a singly
link list.
2. Write algorithm for conversion of General Tree to Binary Tree and also explain by giving a
suitable example.
3. Explain Greedy Method with an example. Discuss the Knapsack Problem.
4. Explain Divide and Conquer Strategy and give an example of its application in searching or
sorting methods.