LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

advertisement
LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
B.Sc. DEGREE EXAMINATION – COMPUTER SCI. & COMPUTER APP.
FIRST SEMESTER – NOVEMBER 2012
CS 1503/CA 1503 - PROGRAMMING IN C
Date : 08/11/2012
Time : 1:00 - 4:00
Dept. No.
Max. : 100 Marks
PART - A
Answer ALL Questions
(10x2=20)
1. Write the rules to declare an identifiers.
2. What are the two types of Assignment Operators?
3. What is an Array?
4. Define functions in C?
5. What is global variable?
6. What is Pointers?
7. What are the types of linked lists?
8. What is union?
9. What is Command line arguments?
10. What is the use of # define in a C program?
PART – B
Answer ALL Questions
(5x8=40)
11. a) Explain the different types of constants in C.
(OR)
b) Write an algorithm to find the biggest of three numbers.
12. a) Explain the different types of if statement with an example.
(OR)
b) How to initialize one, two and multidimensional arrays? Explain with an example.
13. a) Explain Recursion with an example.
(OR)
b) Write the common string functions with an example?
14. a) Write a C program to swap the values using pointers.
(OR)
b) Explain (i) call by value (ii) call by reference.
15. a) Explain various file operations in C programming.
(OR)
b) Explain about Macro substitution.
PART – C
Answer ANY TWO Questions
(2x20=40)
16. a) Write the structure of C programming.
b) Explain the different types of operators in C.
17. a) Explain looping statement in detail with an example.
b) Write a C program to add two matrices using function.
18. a) Explain Array of structure and Array within the structure in detail.
b) Write a note on Dynamic memory allocation.
$$$$$$$$
Download