EC8393-Fundamentals of Data Strucutres in C
EC8393-Fundamentals of Data Strucutres in C
No
Question Paper
5. What are the advantages and disadvantages of linked list over array?
Part B – (5 x 13 = 65 marks)
11. (a) (i) Write a C program to get two strings and display the result of at least 5 string
operations. (7)
(ii) Write a C program to get a five digit number and display the reverse of the same
number. (6)
Or
(b) Write a C program to find the following, where A, B, C are the matrices whose orders are
M*N, M*N and N*N respectively. A=A+B*C.
12. (a) (i) Differentiate the data types, structures with unions. (7)
(ii) Write a C Program to get 10 students details using structure from the user and display
these details on the screen. (6)
Or
(b) (i) Write a C Program to find the factorial of the given number using recursive function.(6)
(ii) Differentiate call by value and call by reference with example program for each. (7)
(i) Reverse a list, so that the last element comes first and so on. (4)
Or
(b) (i) Write a C program to perform multiplication of two polynomials using linked list. (7)
(ii) Define the procedure to convert infix expression to postfix. Convert the
given expression a + ( b * c - ( d / e ^ f ) * g ) * h into postfix.
(6)
14. (a) Distinguish between BFS and DFS with an example. (13)
Or
(b) (i) Draw the result of inserting 20, 10 and 24 one by one into the AVL tree given
below. Draw the tree after each insertion. Explain the operations of the AVL tree.
(13)
Or
16 (a) (i) Sort the following sequence using quick sort. (8)
3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5
(ii) Write a C program to search a number with a given set of unsorted number using
binary search. (7)
or
(b) Given input {4371, 1323, 6173, 4199, 4344, 9679, 1989} and a hash function h(x) = x
(mod 10), show the resulting
(iv) closed