RGU Question Paper Mathematics Semester II 2022: Programming in C

 




2022

( May/June)

BA/B.Sc (II Semester) Examination (CBCS)

MATHEMATICS

Paper: MAT-SE-004

(Programming in C)

Full Marks: 40

Pass Marks: 35%

Time : Two and Half Hours

Note: 1. Questions are divided into two Sections-A and B.

2. Answer the questions according to the instructions given in each Section.

3. The figures in the margin indicate full marks for the questions.

Section-A

1. Answer any five of the following: 2×5=10

(a) Distinguish between variables and constants.

(b) Describe exit control loops and entry control loops briefly.

(c) Write the general syntax for scanf and printf in C.

(d) What are the two basic properties of an array?

(e) Write short notes on data types in C.

(f) Distinguish between arrays and pointers.

(g) What is the difference between a function and a built-in function?

Section-B

2. Answer any three of the following: 10×3=30

(a) (i) Write a program to copy the contents of a 5-element integer array into another array in reverse order.

(ii) Write short notes on the following:

1. Library functions

2. Switch statements. 5+5=10

(b) (i) What do you mean by programming in C?

(ii) Write a function to calculate the factorial value of any integer entered through the keyboard. 3+7=10

(c) Discuss the following briefly in C: 10

(i) do loops

(ii) for loops

(iii) while loops

(d) (i) Write a C program to add two integers.

(ii) Distinguish between if-else statement and switch case statement. 5+5=10

(e) (i) What is the purpose of main() function?

(ii) Discuss the different types of operators in C. 5+5=10

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.