LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034

advertisement
LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
B.C.A. DEGREE EXAMINATION – COMPUTER APPLICATIONS
SECOND SEMESTER – APRIL 2008
CA 2500 - C PROGRAMMING
Date : 23-04-08
Time : 1:00 - 4:00
Dept. No.
DC 31
Max. : 100 Marks
SECTION-A
ANSWER ALL THE QUESTIONS:
(10x2=20)
1. Define Algorithm.
2. Mention the symbols used in flowchart.
3. Define Keywords.
4. Write a C program to find the greater of two numbers using conditional operator.
5. What is the use of goto statement?
6. Define Array.
7. Differentiate between strcmp() and strcpy().
8. Define recursion.
9. What is pointer? How do you declare a pointer variable?
10. Differentiate between structure and arrays.
SECTION-B
ANSWER ALL THE QUESTIONS:
(5x8=40)
11. a) Draw a flowchart to
b) Find the sum of n numbers. [4 marks]
c) Find biggest of three numbers. [4 marks]
(OR)
b) Enumerate the various operators in C.
12. a) Explain any four types of input and output statements in C with suitable
examples.
(OR)
b) Explain the difference between while and do-while loops with suitable example.
13. a) Write a C program to display the Fibonacci series for n numbers.
(OR)
b) Explain about passing arguments to a function with example.
14. a) Write a C program to find the Factorial of a given number using recursion.
(OR)
b) What is structure? Explain with an example.
15. a)Explain the concept of pointers with example.
(OR)
b) Explain the various input and output statements used in files.
1
SECTION-C
ANSWER ANY TWO:
(2x20=40)
16. i) Explain the various steps involved in computer programming. [10 marks]
ii) Explain the various Data types in C with suitable examples. [10 marks]
17. i) Explain about the control statements in c with example. [10 marks]
ii) Write a C program to sort n numbers in ascending order. [10 marks]
18.i)Explain how to pass a pointer to a function with an example. [10 marks]
ii) Write a C program to store customer name, phone number and email id in a file and read the
same. [10 marks]
----------
2
**********
3
Download