June-2021
B.A/B. Sc. (IV Semester) Examination
MATHEMATICS
Paper: MATHSB-242
(Introduction to C)
Full Marks : 50
Pass Marks : 35%
Time : Two Hours
Notes: (i) Answer all questions.
(ii) The figures in the margin indicate full marks for the questions.
I. Answer any five parts: 2x5=10
(a) What is Cache memory?
(b) Distinguish between variables and constants.
(c) Describe briefly the problem solving techniques.
(d) Describe user defined functions.
(e) Write general syntax for do...while loop in C.
(f) What is a super computer?
(g) Describe exit control loops and entry control loops briefly.
II. Answer any four parts: 10x4=40
(a)(i) Draw the block diagram of a computer.
(ii) What do you mean by over-flow and under-flow? Give supportive examples. (5+5)
(b)(i) What do you mean by programming with C?
(ii) Write a program to find the sum of first 𝑛 consecutive natural numbers. (3+7)
(c)(i)Write brief notes on the following:
1. Array 2. Strings.
(ii) Write a program for the conversion from Centigrade to Fahrenheit. (5+5)
(d)Describe the following briefly in C:
(i) do loops
(ii) for loops
(iii) while loops.
(e) What is decision table? Describe decision table with a suitable example. Write a C-program to find the area of a right angled triangle with two given perpendicular sides.
(f)(i) Describe arithmetic and logical operations.
(ii) Write short notes on the following:
1. Library functions
2. Switch statements. (5+5)