November / December 2013
PROGRAMMING AND DATA STRUCTURES - II
Anna University
1 question papers available. Select an examination session to view its question paper.
PROGRAMMING AND DATA STRUCTURES - II
Based on available extracted papers. Question groups and frequency are provisional, not official syllabus weightage or examination predictions.
How many types of Storage classes does the C Janguage support? 2. Write the output of the following code: #define int char main() { int num = 65; )) printf (“%d”, sizeof(num)); } 3. Why do we need fflush() in files? 4. What is the output of the following code? # include <stdio.h> main() { int val = 3; int *pval = வேலி; printf(“%d%d", val, ++*ptr); } Write a C routine to deallocate a singly linked list. How Dequeue differs from a Queue? List some applications of tree. illustrate an example for Extensible Hashing. OD NAA Sort the elements given below using Shell sort: 63 19 7 90 81 36 54 45 72 22 27 10. What do you mean by Indexed Search?
0 eligible source papers. i) Write a C program to insert a number in an array that is already sorted in ascending order. (6) ii) Discuss the significance of Function Macros. (6) iti) Write a C program to compute F(n,r) where F(n,r) can be recursively defined as: F(n,r) = F(n-1,r) + F(n-1, r-1) (4)
0 eligible source papersa) i) Write a C program to define a structure called Height which is defined in terms of Feet and inches. Write suitable functions to read, display, add and subtract two heights from it. (10) ii) Write a C program to copy one file into another. Try to Copy only one character at atime. (6)
0 eligible source papersb) i) Write a C program to copy the last n characters of a character array into another character array using pointers. Also convert the lowercase letters into upper case letters while copying. (10) ii) Write a C program to find whether the array of integers contain duplicate numbers or not using pointers. If so, list its frequency. (6)
0 eligible source papersa) i) Write ADT operations to compute the union and intersection of two sorted doubly linked lists. | (8) ii) Implement a Circular queue with Enqueue and Dequeue operations using array implementation. (8) (OR) | b) i) Write suitable ADT operations to multiply two polynomials using singly linked list. (10) ii) Write a C program to implement the evaluation of postfix expressions using a Stack. ச ன சச (6)
0 eligible source papersa) i) Write ADT operations to perform different Tree Traversals in binary trees. | . (10) ii) Write short notes on Rehashing. (6) (OR) | b) i) Explain Separate chaining mechanism under hashing with suitable examples and routines. (12) ii) Briefly write about the types of Binary trees. (4)
0 eligible source papersa) i) Simulate the result of inserting 10, 12, 1, 14,6, 5, 8, 15, 3, 9, 7, 4, 13, 11 one at a time, into an initially empty binary search tree. (4) ii) Delete the elements 12, 8, 6, 5, 1, 10 one by one from the above binary search tree. | (4) iii) Write suitable ௧076 to perform insertion and deletion operations in a Binary Search Tree. . (8)
0 eligible source papersb) i) Sort the following numbers using Merge sort. Also write proper ADT operations for Merge Sort. 105 43 212 110 6666 820 171312 17 524 (10) ii) Explain Replacement Selection algorithm with a suitable example. (6) ஸ்ள்ஸ்ஸ்ஸ்ல்ல்ல்ல்ள்ள்க்ள்ள்ல்ல்ல்ள்ஸ்ஸ்
0 eligible source papersHistorical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.