I B.Tech - Regular Examinations, June 2009
First Year
C PROGRAMMING AND DATA STRUCTURES - SET NO: 1
(Regulation 2007)
Time : 3 hours |
Maximam Marks:80 |
Answer any FIVE Questions
1. (a) Write a ’C’ program to find the squares of N numbers using do - while.
(b) Write a ’C’ program to convert Decimal Number to Octal Number. [8+8]
2.Write a program to evaluate the equation s = sqr(m() + n() ) using function.
3. Define an array. What are the different types of arrays. Explain.
4. (a) Write a program to store and print name, address ,rollno using structures.
(b) What are the differences between structure and unions. Explain
5. Write a program to read series of digits and store them into a file, then read the
numbers from the file and write all odd & even numbers into different files.
6. Write a program to explain selection sort . Which type of technique does it belong.
7.What are the advantages and disadvantages of stack ? Write a program to illustrate
queue operation ?
8. (a) Define multi graph and graph with self- loop .
(b) Explain connected graph with example. |