CU SEC-A-1 C Programming Language, 2024

University of Calcutta question paper, B.Sc. General Semester III, 2024. C Programming Language. Typed in LaTeX, searchable, with a printable PDF.

Open this paper in MathQP

  1. What is the correct statement for computing 6 7 in C?
  2. Which one is the correct way to initialize array?
  3. How many times the following loop runs? for (n = 1; n < 150; n ++)
  4. Select the valid numeric constant.
  5. What does x -= y + 1 mean?
  6. Consider two float type variables a, b where a = 5 , b = 7 . Then what will be the output of the following code? if (a < b) printf(" else printf("
  7. Find output after executing the following part of the code : int i = 0, n; for (n=1; n<=4; n++) i = n**2 + i; printf("
  8. The value of the C expression texttt 3/pow(2,2) * 2 + 3/8 * 3 + pow(3,2)/2 is
  9. What will be the values of a and b if the following C-program segment is executed? int a=5,b; b=a++;
  10. Which of the following is not TRUE?
  11. texttt break statement
  12. texttt for statement
  13. texttt switch() statement
  14. function
  15. texttt while - loop.
  16. Write a C-program to find the maximum between two given numbers.
  17. How can you use texttt continue statement in C-program? Explain with example.
  18. What do you mean by an algorithm and a flow chart? Explain with examples.
  19. Write an algorithm and draw the flow chart for finding the simple interest for a given principal value, rate of interest and time period (tenure).
  20. RAM
  21. High Level Language
  22. Syntax Error in C-program
  23. Logical Operators in C-program.
  24. What is a single-dimensional array in C?
  25. What is two-dimensional array in C?
  26. Give example of a code using a two-dimensional array in C.
  27. What is the advantage of using arrays in C program?
  28. sec x + log e| cos -1 x + tan -1 y|
  29. 2 x sqrt 1 + tan x + e -x x 2 .
  30. log 10 (100.0) ge pow (3, 2)
  31. a != 6 b > 5 (if a = 10, b = 12 )
  32. ! ,(a mid mid b) (! ,a) (if a = true , b = false ).
  33. 5 times 1.5
  34. -45.6
  35. -1.79 e + 4
  36. “15.75”
  37. 12, 245
  38. 2 e + 10.2 .
  39. Describe the characteristics and the purpose of escape sequence characters.
  40. Using a texttt while statement
  41. Using a texttt for statement.
  42. 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?
  43. Find the output of the following program by giving appropriate explanation : #include<stdio.h> void main ( ) int a; a=4*8 printf("a=
  44. Write a program in C to compute sum of the first n terms of the series : 3 + 3 + 6 + 3 + 3 + 6 + 3 + 3 + 6 + dots