Pages

Saturday 25 August 2012

Programming in 'C'


SATHYABAMA UNIVERSITY
(Established under section 3 of UGC Act, 1956)

Course & Branch: B.E /B.Tech – Common to ALL Branches
Title of the paper: Programming in 'C'
Semester: I/II                                                                 Max. Marks: 80     
Sub.Code: 4ET115/4ET206/5ET115/5ET206/6C0007 Time: 3 Hours
Date: 21-05-2008                                                            Session: FN    

                                                PART – A                       (10 x 2 = 20)
Answer All the Questions
1.     What is conditional operator?
 
2.     What is preprocessor directive? Give example.

3.     What is the use of Continue Statement?

4.     Write a C program to check whether the given number is divisible by 7 or not?

5.     What is meant by an Array?

6.     Mention the string commands which is used for copy, concatenate and compare two strings.

7.     What is pointer?

8.     What is Union?

9.     How to open and close in file in C?

10.   Mention the advantage of Random access file over sequential access file.

PART – B                       (5 x 12 = 60)
Answer All the Questions
11.   Explain the structure of a C program with example.
(or)
12.   Mention all the operators available in C.

13.   What is the difference between entry. Controlled loop and exit controlled loop. Explain each with a suitable program.
(or)
14.   Write a C program to check whether the given number is Armstrong or not.

15.   What is Recursion? Write a ‘C’ program to find the factorial of a given number using Recursion.
(or)
16.   Write a C program to sort the names in alphabetical order.

17.   What is Structure? Mention the difference between structure and union. Explain each with a suitable example.
(or)
18.   Write notes on
        i) pointers and functions.
        ii) Pointers and arrays

19.   Write a file program in C for the student database.
(or)
20.   What are command line arguments? Explain in detail.

No comments:

Post a Comment