CU SEC-A-1 C Programming Language, 2021
University of Calcutta question paper, B.Sc. General Semester III, 2021. C Programming Language. Typed in LaTeX, searchable, with a printable PDF.
Open this paper in MathQP
- texttt pow(3, 4) (ii) texttt pow(4, 3) (iii) texttt pow ! left (4, dfrac 1 3 right ) (iv) texttt pow 3(4)
- Which of the following is NOT TRUE?
- Point out the error, if any, in the for loop given below: : int k=4; for(;;); printf(" if(k>30) break; :
- 6 (ii) 1 (iii) 5 (iv) 9
- texttt break (ii) texttt continue (iii) texttt exit() (iv) texttt goto .
- The only language which the computer understands is
- 0 (ii) 3 (iii) 2 (iv) 2.5
- 8 (ii) 9 (iii) 10 (iv) 11
- 8 (ii) Compile time error (iii) 2 (iv) None of these.
- texttt int[][]arr; (ii) texttt int arr [][]; (iii) texttt int[]arr[]; (iv) None of these.
- What is a loop in C? Why is it necessary in a program? Discuss the differences between while and for loops in C.
- 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.
- 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 .
- What do the file extensions texttt .c , texttt .obj and texttt .exe stands for and when are they created?
- Write a program in C to compute sum of the first n terms of the series: 2+4+2+4+2+ dots
- Find the output of the following program by giving appropriate explanation. #include<stdio.h> void main() int a; a=4*8 printf("a=
- Write three benefits of using functions. Distinguish between the user-defined function and the standard build-in functions.
- Write a program that finds the second largest element in a given list of N elements.
- Write short notes on: The texttt printf() and texttt scanf() functions
- Write a C-program to find the area of a triangle having three sides a, b, c using texttt scanf() .
- 2 x 3 + sin x + log |1 + sin x|
- sin (1 + x 3) - 2 tan (1 + x 2)
- Using for-loop, write a C-program to find sum of the squares of first 100 natural numbers.
- Draw the flow chart corresponding to the algorithm to find the roots of a quadratic equation.
- Write an algorithm and draw the corresponding flow chart to find LCM of two positive integers.
- RAM
- ROM
- What is one dimensional array? Give an example.
- Using array statement, write a C-program to arrange a set of real numbers in decreasing order.
- Distinguish between Break and Continue.
- Write a C-program to illustrate the break statement in a for-loop.
- Write a C-program to find the volume of a sphere of radius r .
- What is the difference between function and recursion in C-language?
- Write a function to carry out the task of computing the factorial of a number.
- Write a short note on Branching Statement in C.