r7100307 Computer Programming

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Code :R7100307 R7

B.Tech I Year (R07) Supplementary Examinations, May 2011


COMPUTER PROGRAMMING
(Mechanical Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE questions
All questions carry equal marks
⋆⋆⋆⋆⋆

1. Write algorithm, flowchart and program to find greatest of three numbers.

2. (a) What are the rules for writing printf and scanf statements?
(b) Write a program to print sum of two input numbers.

3. (a) Write a program to print value of address using static variable.


(b) Explain call by reference.

4. (a) What is the advantages of using pointers?


(b) Explain static memory allocation.

5. Define Structure and write the general format for declaring and accessing structure members
with an example.

6. Write a program using indexed sequential file for employee database.

7. Write a program in C to perform the various operations that can be done on stack that was
implemented using array.

8. (a) What is a network?


(b) What is a spanning tree?
(c) Define minimal spanning tree.
(d) What are the various traversals in a tree?

⋆⋆⋆⋆⋆

You might also like