I B.Tech - Regular Examinations, June 2009
First Year
C PROGRAMMING AND DATA STRUCTURES - SET NO: 2
(Regulation 2007)
Time : 3 hours |
Maximam Marks:80 |
Answer any FIVE Questions
1. What are the different format specifiers available for Input and Output statements.Explain with an example?
2. How automatic and static variables are used in different blocks. Explain with a program.
3.What is dynamic memory allocation ? Mention the advantages of memory allocation and discuss its function .
4. Define Structure and write the general format for declaring and accessing members.
5. (a) Write the syntax for opening a file with various modes and closing a file
(b) Explain about file handling functions .
6. Write a program to sort the elements whose worst case is O(n2) and average case
is O(n log n).
7. Compare singly and doubly linked list to perform insertion operation .
8.Explain Kruskal’s method of determining the minimal spanning tree |