CU-2021 B.Sc. (General) Mathematics Semester-3 Paper-SEC-A QP
CU-2021 B.Sc. (General) Mathematics Semester-3 Paper-SEC-A QP
)-Mathematics-G/SEC-A/CBCS
2021
MATHEMATICS — GENERAL
Paper : SEC-A
(C-Programming Language)
Full Marks : 80
Candidates are required to give their answers in their own words
as far as practicable.
1/ ÚœÀ‰¬ı˛ õ∂ùü&ø˘ı˛ õ∂øÓ¬øÈ¬ ŒÔÀfl¬ ¸øÍ¬fl¬ øıfl¬äøÈ¬ ˚≈øMê¸˝fl¬±Àı˛ øÚı«±‰¬Ú fl¬Àı˛± – 2×10
ïfl¬ó 4-¤ı˛ ‚Ú øÚÌ«À˚˛ı˛ ¸øÍ¬fl¬ statement øÈ¬ ˝˘
ï’ó pow(3, 4) ï’±ó pow(4, 3)
ï˝◊ó pow(4, 1 ) ï÷ó pow 3(4)
3
ï‡ó ÚœÀ‰¬ı˛ Œfl¬±ÚƒøÈ¬ ¸Ó¬… Ú˚˛∑
ï’ó Array ˝˘ ’±˘±± data type-¤ı˛ ¸˜ø©Ü
ï’±ó Array ά◊¬Û±±Ú&ø˘ ˝˘ ’Ú≈Sêø˜fl¬ (sequential) Œ˜˜øı˛ ’ı¶ö±Ú
ï˝◊ó ά◊¬Û±±Ú ı…øÓ¬Àı˛Àfl¬ array Œ‚±¯Ì± ˚ø fl¬Àı˛± ά◊¬Û±±Ú&ø˘ÀÓ¬ garbage value set ˝Àı
ï÷ó Array-ı˛ ά◊¬Û±±Ú&ø˘ ¤fl¬˝◊ Ú±˜ ˆ¬±· fl¬Àı˛/
2/ ïfl¬ó C-ŒÓ¬ loop fl¬œ∑ ¤øÈ¬ Œõ∂±¢∂±À˜ fl¬œ õ∂À˚˛±ÊÚ ˝˚˛∑ While ¤ı— C loop &ø˘ı˛ ¬Û±Ô«fl¬… ’±À˘±‰¬Ú± fl¬Àı˛±/
ï‡ó ¤fl¬øÈ¬ C-Œõ∂±¢∂±˜ Œ˘À‡± ˚± ≈øÈ¬ ¬Û”Ì«¸—‡…± m ¤ı— n, input ø˝¸±Àı ¢∂˝Ì fl¬ı˛Àı/ ˚ø m, n-¤ı˛ Œ‰¬À˚˛ ŒÂ±È¬ ˝˚˛, Ó¬±Àı˛
Œ˚±·Ù¬˘ ˜≈^Ììõ∂˙«Ú fl¬Àı˛±/ ˚ø n, m-¤ı˛ Œ‰¬À˚˛ ŒÂ±È¬ ˝˚˛, Ó¬±Àı˛ Ó¬Ù¬±Ó¬ (difference) ˜≈^Ììõ∂˙«Ú fl¬Àı˛±/ ˚ø ά◊ˆ¬À˚˛˝◊
¸˜±Ú ˝˚˛, equal ı±Ó«¬±øÈ¬ ˜≈^Ììõ∂˙«Ú fl¬Àı˛±/ ï1+2+2ó+5
3/ ïfl¬ó ¤fl¬øÈ¬ Œõ∂±¢∂±˜ Œ˘À‡± ˚± ¤fl¬øÈ¬ ¬Û”Ì«¸—‡…± ¢∂˝Ì fl¬Àı˛ ¤ı— Ó¬± 11 Z±ı˛± øıˆ¬±Ê… øfl¬Ú± øÚÒ«±øı˛Ó¬ fl¬Àı˛±/ ˚ø øıˆ¬±Ê… Ú±
˝˚˛, Ó¬Àı 11 Z±ı˛± øıˆ¬±Ê… øÚfl¬È¬Ó¬˜ ¬Û”Ì«¸—‡…± Œıı˛ fl¬Àı˛/
ï‡ó .c, .obj ¤ı— .exe file ¸•x¸±ı˛Ì&ø˘ fl¬œ ø‰¬ø˝êÓ¬ fl¬Àı˛ ¤ı— fl¬‡Ú ¤&ø˘ ΔÓ¬øı˛ ˝˚˛∑ 5+ 5
4/ ïfl¬ó 2+4+2+4+2+... series-¤ı˛ õ∂Ô˜ nøÈ¬ ¬ÛÀı˛ Œ˚±·Ù¬˘ øÚÌ«À˚˛ı˛ ÊÚ… ¤fl¬øÈ¬ C Œõ∂±¢∂±˜ Œ˘À‡±/
ï‡ó ˚Ô±˚Ô ˚≈øMê øÀ˚˛ ÚœÀ‰¬ı˛ Œõ∂±¢∂±˜øÈ¬ı˛ Ù¬˘±Ù¬˘ (output) Œ˘À‡± –
#include<stdio.h>
void main()
{
int a;
a=4*8%5;
printf(”a=%d”,a);
} 7+3
5/ ïfl¬ó Ù¬±—˙Ú ı…ı˝±Àı˛ı˛ øÓ¬ÚøÈ¬ ¸≈øıÒ± Œ˘À‡±/ user-defined function ¤ı— standard built-in function-¤ı˛ ˜ÀÒ… ¬Û±Ô«fl¬…
øÚı˛+¬ÛÌ fl¬Àı˛±/
ï‡ó ¤fl¬øÈ¬ Œõ∂±¢∂±˜ Œ˘À‡± ˚± ¤fl¬øÈ¬ N ¬ÛÀı˛ Ó¬±ø˘fl¬± ŒÔÀfl¬ øZÓ¬œ˚˛ ı‘˝M˜ ¸—‡…± øÚÌ«˚˛ fl¬Àı˛/ 5+5
ï’ó 2 x
3
sin x
log 1 sin x
ï’±ó sin 1 x3 2 tan 1 x 2
ï‡ó õ∂Ô˜ 100 ¶§±ˆ¬±øıfl¬ ¸—‡…±ı˛ ıÀ·«ı˛ Œ˚±·Ù¬˘ øÚÌ«À˚˛ı˛ ÊÚ… for loop ı…ı˝±ı˛ fl¬Àı˛ ¤fl¬øÈ¬ C-Œõ∂±¢∂±˜ Œ˘À‡±/
ï·ó øZ‚±Ó¬ ¸˜œfl¬ı˛ÀÌı˛ ıœÊ øÚÌ«À˚˛ı˛ ¸—ø˙v©Ü flow chart ı˛‰¬Ú± fl¬Àı˛±/ ï2+1ó+4+3
8/ ïfl¬ó ≈øÈ¬ ÒÚ±Rfl¬ ¬Û”Ì« ¸—‡…±ı˛ ˘.¸±.&. øÚÌ«À˚˛ı˛ ÊÚ… ¤fl¬øÈ¬ algorithm Œ˘À‡± ¤ı— ¸—ø˙v©Ü flow chart ’Ç¬Ú fl¬Àı˛±/
ï‡ó Ȭœfl¬± Œ˘À‡± –
ï’ó RAM
ï’±ó ROM [ï3 + 3ó + ï2 + 2ó]
[English Version]
The figures in the margin indicate full marks.
Answer Question No. 1 and any six from the rest.
2. (a) What is a loop in C? Why is it necessary in a program? Discuss the differences between while and
for loops in C.
(b) Write a C-program which reads two integer values m and n. If m is less than n, display their sum.
If n is less than m, display their difference. If both are equal, display the message equal.
(2+3)+5
3. (a) Write a program that reads an integer number and determine whether it is divisible by 11 or not. If
not, then finds the nearest integer divisible by 11.
(b) What do the file extensions .c, .obj and .exe stands for and when are they created? 5+5
4. (a) Write a program in C to compute sum of the first n terms of the series:
2+4+2+4+2+...
(b) Find the output of the following program by giving appropriate explanation.
#include<stdio.h>
void main()
{
int a;
a=4*8%5;
printf(”a=%d”,a);
} 7+3
5. (a) Write three benefits of using functions. Distinguish between the user-defined function and the standard
build-in functions.
(b) Write a program that finds the second largest element in a given list of N elements. 5+5
(b) Write a C-program to find the area of a triangle having three sides a, b, c using scanf().
2+3+5
3
(ii) sin 1 x 2 tan 1 x
2
(b) Using for-loop, write a C-program to find sum of the squares of first 100 natural numbers.
(c) Draw the flow chart corresponding to the algorithm to find the roots of a quadratic equation.
(2+1)+4+3
8. (a) Write an algorithm and draw the corresponding flow chart to find LCM of two positive integers.
(b) Write short notes on:
(i) RAM
(ii) ROM [(3+3)+(2+2)]
11. (a) What is the difference between function and recursion in C-language?
(b) Write a function to carry out the task of computing the factorial of a number.
(c) Write a short note on Branching Statement in C. 3+4+3