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

  1. The value of the C expression texttt 5/4 * 4 + 25/3%2 is
  2. The equivalent C statement of x = dfrac 2x 6y is
  3. What is the correct statement for computing a x in C?
  4. A C variable cannot start with
  5. Which of the following is not a Loop?
  6. What will be the values of a and b if the following C program segment is executed? int a = 5, b; b = a++;
  7. How many times the following loop runs? texttt for (n = 1; n < 150; n++)
  8. Which of the following statements can be used to immediately exit from a loop?
  9. Select the valid numeric constant.
  10. The program segment int A = 25; printf (" will print
  11. Compiler and Interpreter
  12. Machine Language and High Level Language.
  13. texttt 3rd row
  14. texttt n1 + n2
  15. texttt name
  16. texttt sum total .
  17. Object oriented programming language
  18. ALU.
  19. cos x sin y + cot y + log e(| cos x + tanh y|)
  20. x 3 + sqrt x 2 - y 2 + e xy + y 3
  21. Write a C program to find the minimum between two given numbers.
  22. How can you use texttt break and texttt continue statements in texttt for loop? Give an example to justify your answer.
  23. What do you mean by an algorithm and a flow chart? Explain with examples.
  24. Write an algorithm and draw the flow chart for finding the area of a triangle, when sides of a triangle are given.
  25. Write short notes on texttt scanf and texttt printf functions.
  26. whether a given integer is positive or not
  27. whether a given integer is even or odd.
  28. Write a short note on texttt while loop. Explain it with suitable example.
  29. Write a C program to compute 1 + dfrac 1 2 + dfrac 1 3 + cdots + dfrac 1 50 .
  30. Name and describe the four basic types of constants in C.
  31. 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 ?
  32. Write three benefits of using functions. Distinguish between the user-defined function and the standard build-in functions.
  33. 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 .
  34. What is one-dimensional array in C? Give an example.
  35. Write a program that reads two matrices of same order m times n and prints their sum.