0% found this document useful (0 votes)
3 views1 page

C Programming - Assignment 2

The document outlines a series of programming assignments and questions related to C programming, including tasks such as matrix addition and multiplication, string manipulation, and short notes on various programming concepts. It also includes questions about flowcharts, algorithms, and distinctions between programming elements like variables and constants. The assignments are to be submitted by February 10, 2023, coinciding with the 2nd internal examination date.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

C Programming - Assignment 2

The document outlines a series of programming assignments and questions related to C programming, including tasks such as matrix addition and multiplication, string manipulation, and short notes on various programming concepts. It also includes questions about flowcharts, algorithms, and distinctions between programming elements like variables and constants. The assignments are to be submitted by February 10, 2023, coinciding with the 2nd internal examination date.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Submit the assignment on the date of 2nd internal

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

You might also like