LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034 B.C.A. DEGREE EXAMINATION – COMPUTER APPLICATIONS FIRST SEMESTER – NOVEMBER 2012 CA 1505 - PROGRAMMING IN C Date : 08/11/2012 Time : 1:00 - 4:00 Dept. No. Max. : 100 Marks PART – A Answer ALL Questions: (10 x 2 = 20) 1. Define Algorithm. 2. Define Operating systems. 3. Write a loop that will calculate the sum of every third integer beginning from 2 to 100. 4. Differentiate Break and Continue. 5. Define Arrays. 6. Differentiate getch() and gets() 7. Define Library functions. 8. Define Pointers. 9. Give the difference between Structures & Unions. 10. State the usage of Bit fields. PART - B Answer ALL Questions: 11. a) Write an Algorithm to fin the average of the set of even numbers from 2 to 100. (Or) b) Explain about any two input and any two output devices. 12. a) Write short notes on the Datatypes in C. (Or) b) Explain Switch case with an example. 13. a) Write a Program to find the sum of two 3x3 matrix. (Or) b) Write short notes on String handling functions. 14. a) Define Recursion. Write a recursive code to calculate the factorial. (Or) b) Define Functions. Explain call by value and reference. 15. a) Differentiate Unions and Enumerated Datatypes with examples. (Or) b) Write short notes on Command Line arguments with an example code. (5 x 8 = 40) PART – C Answer any TWO Questions: (2 x 20 = 40) 16. (a) Draw a flowchart for printing the multiplication table of 5 (b) Explain if-else and for statements with examples. 17. (a) Give the uses of Arrays. Explain multidimensional Arrays. (b) Write a program to sort a given set of numbers. 18. (a) Explain Storage Classes with Examples. (b) Write a program to create a structure containing the name, marks and grade of the students and find the student with highest mark. $$$$$$$$