C Programming - Assignment 2
C Programming - Assignment 2
examination on 10.02.2023
23.Write a C program for matrix addition. 7
24.Write a C program for matrix multiplication. 7
25.Write a C program to convert a String from Upper case to Lower case and vice
versa. 5
26.Write short notes on a) Machine Language, b) Assembly Language, c) High level
language 3X3
27.Write short notes on a) Assembler, b) Compiler, c) Interpreter, d) Linker,
e) Loader 5X2
28.Write the difference between Compiler and Interpreter. 3
29.Draw the flow chart and describe the algorithm to compute the factorial of N. 5
30.Draw the flow chart and describe the algorithm to check whether a given number
is Prime or not. 5
31.What are header files? How are they used in a C program? 3
32.What is an identifier? Give example. 3
33.Distinguish between a variable & a constant in C? 3
34.Write short notes on Arithmetic Operator, b) Comma & sizeof operator 2 X 3
35.Write the difference between precedence and associativity 3
36.Write short notes on the following library functions a) scanf(), b) printf(),
c) getch(), d) getche(), e) gets() and f) puts() 6X2
37.Explain the importance of a ‘switch-case’ statement. In which situations is a
‘switch-case’ desirable? Also give its limitations. 5
38.Write short notes on goto statement 4
39.Distinguish between ‘break’ and ‘continue’ statement with example. 5
40.Write short notes on a) strcat(), b) strcmp(), c) strcpy(), d) strcat(), e) strrev()
5X2
41.What do you mean by function declaration, function definition and function call?
3
42.Write short notes on Recursion. 5
43.Distinguish between the following: 3 X 5
a. unary & binary operator
b. bitwise & logical operator
c. Local variable & global variable
d. Automatic and static variable
e. Scope and longevity of variables
44.Discuss various storage classes used in C. 4
45.Differentiate between call by value and call by reference. 4