Professional Documents
Culture Documents
DS QP
DS QP
DS QP
SECTION A
I. Answer any four questions. Each question carries 2 marks. (4*2=8)
SECTION B
II. Answer any four questions. Each question carries 5 marks. (4*5=20)
7. What are data structures? Discuss different types of data structures with their
characteristics and features.
8. Write an algorithm to sort the elements using Quick Sort.
9. Evaluate the following postfix expression-> 95+36*97-1
10. What is a binary search? Write the algorithm for searching an element using binary
search.
11. Construct BST for the given list:
56 38 10 65 72 44 50
12. Sort the following elements using Shell Sort.
38, 47, 24, 42,17.
SECTION C
III. Answer any four questions. Each question carries 8 marks. (4*8=32)
13. Construct a binary tree in given in-order & post order traversal 8
a. In-order: EACKFHDBG
b. Post-order: ECKAHBGDF
14. A) Write a C program to display sparse matrix. 4
B) Explain various types of linked lists. 4
15. A) Convert the following infix expression into its equivalent postfix expression.
(A+B) *(M/N) +(X+Y) 4
B) Explain hashing techniques and techniques for collision resolution. 4
16. Define Tree data structures. Explain various tree terminologies with a neat diagram.
17. A) Explain queue underflow and overflow. 4
B) Write an algorithm for i) Push ii) Pop operation for stack.
18. A) Explain any 4 mathematical functions. 4
B) Write a C program to sort an array using insertion sort technique. 4