University of Calcutta
2025
MATHEMATICS — HONOURS
Paper : SEC-1
(C Language with Mathematical Applications)
Full Marks : 75
D(1st Sm.)-Mathematics-H/SEC-1/CCF
The figures in the margin indicate full marks.
Candidates are required to give their answers in their own words as far as practicable.
Notations and Symbols have their usual meaning.
-
Answer any five questions :$3\times5$
- Write the output of the following C program :
#include<stdio.h> main() { int a = 5, b = 10, Result; Result = (a < b) && (b == 10); printf("%d", Result); } - What will be the output of the following C program? Give reasons in support of your answer.
#include<stdio.h> main() { int x = 3, y = 2, z; z = (x++)+(++y); printf("z = %d", z); } - What is the difference between
=and==operators in C? Give an example. - Identify the error(s) in the following snippet :
#include<stdio.h> main() { int x = 3 if x > 0; printf("Positive"); } - Write the following expression in C. \[ e^{x^4+3\tan x}+\cot(x^3+7)+5\sqrt x\sec(3x). \]
- What is the difference between While and do-while loops in C?
- Explain the concept of a function prototype in C.
- Write the output of the following C program :
-
Answer any five questions :
- Write short notes on Compiler, Interpreter, Machine Language and High Level Language. 2+2+2+2
-
- What is the output of the following C code?
#include <stdio.h> int main() { int a = 3; printf("%d%d", a, a++); } - What is meant by an operator in C? Explain the functions of logical AND and logical OR operators. 3+(1+4)
- What is the output of the following C code?
-
- Explain the use of for loop with an example.
- Write a C program to find the sum of all even numbers between 1 and 30. 3+5
-
- Describe the different relational operators available in C.
- Write a program to read 20 integers from the keyboard and calculate their average. 3+5
-
- What is an array? How do you initialize a 1D array?
- Write a C program to find the maximum element in a given array of 20 numbers. 3+5
-
- Compare the float and double data types in terms of precision and memory.
- Write a C program to find the transpose of a $3\times3$ matrix. 3+5
- What is recursion? Write a function to evaluate factorial of $n$ to show how the recursion works. 2+6
-
Answer any two questions :
-
- Write a C program to check whether a given positive integer is a Perfect Number.
- Write a program to read a list of 15 numbers and sort them in descending order. 5+5
- Write a C program that takes three real numbers $a,b,c$ as user inputs, then identifies the nature of the roots of the quadratic equation $ax^2+bx+c=0$, and finally prints the roots of the equation. 10
-
- Write a program to find the value of \[ 1-\frac13+\frac15-\frac17+\frac19-\dots+\frac{1}{2025} \]
- Write a C program to compute the value of $f(x)$ for $x=0,1,2,\dots,10$, where $f(x)$ is defined as \[ f(x)=\begin{cases}x\cos x; & 0\leq x\leq2\\ xe^x; & 2<x\leq5\\ \log_e(1+x); & x>5.\end{cases} \] 5+5
-
Typed and checked by PALMATHS from the original CU question paper. Spotted a typo? Tell us on WhatsApp.
Questions students ask
Is this the real CU 2025 SEC-1 question paper?
Yes. This is the University of Calcutta 2025 Mathematics Major (Honours) Semester 1 paper SEC-1 (C Language with Mathematical Applications). PALMATHS typed every question from the original paper and checked it line by line, so you can read it on your phone or print a clean copy.
How many marks is the CU SEC-1 paper?
The 2025 SEC-1 paper is for 75 full marks. The marks for every question are shown on the right, exactly as in the original paper.
Where can I get solutions or help with this paper?
Message Biswadip Sir on WhatsApp at +91 90882 61414 for doubts on any question, or join the PALMATHS B.Sc Mathematics classes (online or offline at Garia, Kolkata). Free video lessons are on the Biswadip Sir YouTube channel.


