Visva-Bharati · Department of Mathematics
MJMA-16
C Programming
B.Sc. Mathematics · Semester VI2026
- 1(a) What is flowchart? Draw a flowchart to add $N$ terms of the series $1+\frac3{3!}+\frac5{5!}+\frac7{7!}+\cdots$. [[1+4]]
- 1(b) Distinguish between a source program and an object program. [[2]]
- 1(c) A C program contains the following declarations \begin{verbatim} int i, j; long ix; short s; float x; double dx; char c; \end{verbatim} Determine the data type of the following expressions. (i) $ix+j$ (ii) $i+c$ (iii) $s+c*s$ (iv) $i+x$ [[2]]
- 1(d) What is an escape sequence? [[1]]
- 2(a) Design an algorithm to evaluate $e^{-x}=1-\frac x{1!}+\frac{x^2}{2!}-\frac{x^3}{3!}+\cdots$, correct upto five decimal places. [[3]]
- 2(b) Determine which of the following are valid identifiers. If invalid, explain why. (i) \$tax (ii) for (iii) mjma16 (iv) name and roll [[2]]
- 2(c) Mention the type of the constants from the following. (i) 0714 (ii) ``FRESHERS WELCOME-2026'' [[1]]
- 2(d) What is a symbolic constant? How is a symbolic constant defined? Explain with a suitable example. [[2]]
- 2(e) Identify whether the following statement is an expression statement, a compound statement or a control statement. \begin{verbatim} { ++x; if (x > 0) y = 23.4; else y = 53.2; printf("%f", x); } \end{verbatim} [[2]]