University: Sathyabama University
SATHYABAMA UNIVERSITY
Course: B.E, B.Tech Degree Examination
Departments: Aeronautical Engineering, Automobile Engineering, BIN, BTE, Chemical Engineering, Computer Science Engineering, E and C, Electronics and Communication Engineering, EEE, Information Technology, Mechanical Engineering, M and P, .
Subject: Programming in 'C'
Sub. Code :6C0007(2008/2009)
Sub. Code :6C0007(2008/2009)
Register
Number
|
(Established
under section 3 of UGC Act,1956)
Course & Branch :B.E/B.Tech -
AERO/AUTO/BIN/BTE/CHEM/
CSE/E&C/ECE/EEE/EIE/ETCE/IT/M&P/MECH
Title of the Paper :Programming in 'C'
Max. Marks:80
Sub. Code :6C0007(2008/2009)
Time : 3
Hours
Date :09/12/2014
Session
:AN
______________________________________________________________________
PART – A (10 x 2 = 20)
Answer All the Questions
1. Give the structure of a ‘C’ program.
2. Provide an example for relational expression and logical expression.
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 an index and why does it have to be unique?
6. Define recursion.
7. What is an array?
8. List out the difference between structures and unions.
9. What is called command line
arguments?
10. Give the advantages and
disadvantages of sequential file.
PART – B (5
x 12 = 60)
Answer All the Questions
11. (a) Write the differences between top down and bottom up
approaches. (4)
(b) Draw a flow chart for finding the roots of a quadratic
equation. (8)
(or)
12. Mention the various types of operator used in ‘C’. Give example
for each.
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. (a) Write a C program to find the transpose of
a matrix.
(b) Assume s1 =” Welcome” s2=”hai”.
Write
a C program to (i) find the length of s1.
(ii) copy to another string s3
(iii) compare s1 with s2
(or)
16. List the different storage classes available in C. Explain each
of them in detail.
17. Explain in detail about nested structure with example.
(or)
18. (a) what
is Pointer? Write a program to swap two numbers using
Pointers. (b) Explain in detail about preprocessor directives.
19. Write a
file program in C for the student database.
(or)
20. What are command line arguments? Explain in
detail.
0 comments:
Pen down your valuable important comments below