Programming in C (Important Question Paper)
Programming in C (Important Question Paper)
UMA64/ESMA65 PROGRAMMING IN C
LANGUAGE
Time Three hours Maximum: 75marks
SECTIONA-(10 x 2 = 20 marks)
6TLPEI5.
5T6MLDB6IT 6T(L9GI5.
SECTIONB-(5 x 5 = 25 marks)
2 1374
12. (a) Explain increment and decrement
with an example.
operator
LDDgILD olauls6M61T
GTO%GIB8TGL60M olail
Or
(b) Write the precedence of arithmetic operators.
6T60T 65 60t1s dsualgaflc0T (LpngilmomL GT(19515.
13. (a) Explain if... else statement.
if..else a)np oilaut.
Or
(b) Explain switch statement.
Switch sa.p6»p aflaufl.
14. (a) Explain union with example.
Union g GTs5166TLQLI ola.
Or
Write short notes on return values and their
(b)
types.
LDgÚL66mOT U5gjLD
3 1374
SECTIONC-(3 x 10 30 marks)
4 1374
APRILMAY 2020
UMA64 PROGRAMMING IN C
LANGUAGE
5. Define array.
283
SECTION B- (5 x 5 25 marks)
Or
) a +b+27
mx +ny
i) a+b
283
How do you declare and give values to a
15. (a)
pointer variable? Explain.
Or
(b) Write a program to add two variables using
pointers.
and
difference between structures and
19. Explain the
unionS.
3 283
APRIL/MAY 2022
BMA64 PROGRAMMING IN
C LANGUAGE
4747
8. Define initialising two-dimensional array. 13. (a) F
UflomT aulmauils6 0tlu'slsbr 5IJÉB`M5
6 TuiD
9 Define structure.
6LLMoÚMU 6MJuIgI.
12. (a) Write a C program to add '10' numbers given 15. (a)
by user as input.
LLEi L D 10 6T6Ö0T6566T 2oTTG GlLIbI 6 0 u
Or
b) Discuss the different types of input and
output statements used in file with example. (b
GsTUyahl UusTU6ILb 26TafL6 LobgIb
GlactlusLQs nbpIsT uDp 6T$5is%TLGL60T
alaui.
2 4747
13. (a) Explain the different types of operators used
in C.
C-d UuGTUGLb uGa ol5Lomø
GlgwdGplsdr Libðl ailautil.
Or
b) What is else of ladder? Give an example.
6T6d6U GaLT GT6TDT T601601?25TJ60TLD
4747