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

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