QP CODE: 19102528 Reg No : .....................
19102528
Name : .....................
BCOM DEGREE (CBCS ) EXAMINATION, OCTOBER 2019
Fifth Semester
Complementary Course - CO5CMT08 - PROGRAMMING IN C
B.Com Model II Computer Applications ,B.Com Model III Computer Applications
2017 Admission Onwards
B8CF5443
Maximum Marks: 60 Time: 3 Hours
Part A
Answer any ten questions.
Each question carries 1 mark.
1. What is a token?
2. Differentiate between prefix and postfix form of increment decrement operators.
3. What is a character constant?
4. Draw a flow chart for simple 'if' statement?
5. Write down the syntax of for loop?
6. How to declare a string variable?
7. What is the difference between strlwr() and struper() functions?
8. What do you mean by user defined function?
9. Define scope of a variable?
10. Mention any four library functions?
11. When is a null pointer used?
12. Differentiate between the following two expressions
a) *p=10;
b) P=10;
(10×1=10)
Part B
Answer any six questions.
Each question carries 5 marks.
13. Explain the different type of errors that may appear in a program.
Page 1/2 Turn Over
14. Explain the basic structure of a C program.
15. Explain control structures?
16. Explain the goto statement?
17. Write a C program to read and display n numbers using an array?
18. Explain function header with an example?
19. Explain function with argument and without return type?
20. Explain the use of ‘struct’ keyword
21. What is the purpose of the data type included in the declaration of pointers ?
(6×5=30)
Part C
Answer any two questions.
Each question carries 10 marks.
22. Discuss the different type of input output functions with suitable examples.
23. Explain elseif ladder and switch statement? what is the advantage of switch statement over elseif
ladder ?
24. Write a C program to add two Matrices?
25. Differentiate call by value and call by reference with suitable examples?
(2×10=20)
Page 2/2