0% found this document useful (0 votes)
10 views

Programming in C (Theory) July21

Uploaded by

sarath22537
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Programming in C (Theory) July21

Uploaded by

sarath22537
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

21101678

QP CODE: 21101678 Reg No : .....................

Name : .....................

B.COM DEGREE (CBCS ) SPECIAL SUPPLIMENTARY EXAMINATION, JULY 2021


Fifth Semester
Complementary Course - CO5CMT08 - PROGRAMMING IN"C" (THEORY)
Common for B.Com Model II Computer Applications & B.Com Model III Computer Applications
2018 Admission Only
ED4EA20D
Time: 3 Hours Max. Marks : 60
Part A
Answer any ten questions.
Each question carries 1 mark.

1. What is a compiler?

2. What is a preprocessor statement?

3. What is a punctuator?

4. Explain the syntax of 'nested if' statement.

5. Differentiate control statement and body of loop.

6. Which character is stored to terminate an array in C?

7. Explain the function Strcmp() in C

8. Define function declaration.

9. Define local variable.

10. Define the major functions in conio.

11. What is the purpose of address operator ?

12. What is NULL pointer?


(10×1=10)
Part B
Answer any six questions.
Each question carries 5 marks.

13. Explain the rules for assigning variable names in a C program.

Page 1/2 Turn Over


14. Describe the functions involved in formatted input output operations with suitable
examples.

15. Explain the working of following C program code ?


if (code==1)
boy=boy+1;
if (code==2)
girl=girl+1;

16. Explain break and continue statements

17. How to read and display strings?

18. What are the advantages of user defined functions?

19. Write a function definition for finding smallest among two numbers.

20. How does a structure differ from an array ?

21. Explain Memory operators associated with pointer variables.


(6×5=30)
Part C
Answer any two questions.
Each question carries 10 marks.

22. Explain the operators in C language.

23. Briefly explain control structures and its different categories.

24. Write a C program to add two Matrices.

25. Explain categories of function based on arguments and return type with suitable
examples.
(2×10=20)

Page 2/2

You might also like