CU SEC-A-1 C Programming Language, 2025
University of Calcutta question paper, B.Sc. General Semester III, 2025. C Programming Language. Typed in LaTeX, searchable, with a printable PDF.
Open this paper in MathQP
- The value of the C expression texttt 5/4 * 4 + 25/3%2 is
- The equivalent C statement of x = dfrac 2x 6y is
- What is the correct statement for computing a x in C?
- A C variable cannot start with
- Which of the following is not a Loop?
- What will be the values of a and b if the following C program segment is executed? int a = 5, b; b = a++;
- How many times the following loop runs? texttt for (n = 1; n < 150; n++)
- Which of the following statements can be used to immediately exit from a loop?
- Select the valid numeric constant.
- The program segment int A = 25; printf (" will print
- Compiler and Interpreter
- Machine Language and High Level Language.
- texttt 3rd row
- texttt n1 + n2
- texttt name
- texttt sum total .
- Object oriented programming language
- ALU.
- cos x sin y + cot y + log e(| cos x + tanh y|)
- x 3 + sqrt x 2 - y 2 + e xy + y 3
- Write a C program to find the minimum between two given numbers.
- How can you use texttt break and texttt continue statements in texttt for loop? Give an example to justify your answer.
- What do you mean by an algorithm and a flow chart? Explain with examples.
- Write an algorithm and draw the flow chart for finding the area of a triangle, when sides of a triangle are given.
- Write short notes on texttt scanf and texttt printf functions.
- whether a given integer is positive or not
- whether a given integer is even or odd.
- Write a short note on texttt while loop. Explain it with suitable example.
- Write a C program to compute 1 + dfrac 1 2 + dfrac 1 3 + cdots + dfrac 1 50 .
- Name and describe the four basic types of constants in C.
- The following is a segment of a program : x = 1; y = 1; if (n > 0) x = x + 1; y = y - 1; printf (" What will be the values of x and y if n assumes a value 1 ?
- Write three benefits of using functions. Distinguish between the user-defined function and the standard build-in functions.
- Write a C program to find the value of y for the function y = x 3 e x, x le 1 x cos x, x > 1 for x = 0.1, 0.2, ldots , 1.5 .
- What is one-dimensional array in C? Give an example.
- Write a program that reads two matrices of same order m times n and prints their sum.