Register Number
|
|
|
|
|
|
|
|
(Established under
section 3 of UGC Act, 1956)
Course & Branch:
B.E/B.Tech- Common to ALL Branches (Except E&C)
Title of the Paper: Programming in C Max.
Marks: 80
Sub. Code: SCSX1002 Time: 3 Hours
Date: 16/12/2010 Session:
FN
______________________________________________________________________________________________________________________
PART
- A (10 X 2 = 20)
Answer ALL the Questions
1. Define variable. Give Example.
2. List any four math functions.
3. Write
a code segment using while statement to print the numbers from 10 down to 1.
4. What is the need of command line argument?
5. What are the advantages of union over
structure?
6. Write a C program to reverse the given
string.
7. What is meant by malloc() function? Give
example.
8. Differentiate pointers with arrays.
9. What is meant by preprocessor directives?
10. Give the importance of graphics packages.
PART – B
(5 x 12 = 60)
Answer All the Questions
11. What
are the different operators available in C? Explain with examples.
(or)
12. Explain the input/output functions of ‘C’
with suitable example.
13. Explain the following conditional statements.
(a) nested if-else statement
(b) switch-case statement
(or)
14. (a)
Write a C program that reads a number and display whether the number is prime
or not using function.
(b) Write short notes on storage class
specifiers.
15. Write
a C program that gets and displays the report of n students with their personal
and academic details using structures.
(or)
16. Write a C program to perform the
multiplication of two matrices.
17. Differentiate
pass by value and pass by address in C. Give example.
(or)
18. Explain
the different types of memory allocation functions with examples.
19. Discuss
the file handling functions of C in detail with suitable example.
(or)
20. Discuss
the C functions used in graphics in detail with suitable example.
0 comments:
Pen down your valuable important comments below