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
- What is the correct statement for computing 6 7 in C?
- Which one is the correct way to initialize array?
- How many times the following loop runs? for (n = 1; n < 150; n ++)
- Select the valid numeric constant.
- What does x -= y + 1 mean?
- 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("
- 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("
- The value of the C expression texttt 3/pow(2,2) * 2 + 3/8 * 3 + pow(3,2)/2 is
- What will be the values of a and b if the following C-program segment is executed? int a=5,b; b=a++;
- Which of the following is not TRUE?
- texttt break statement
- texttt for statement
- texttt switch() statement
- function
- texttt while - loop.
- Write a C-program to find the maximum between two given numbers.
- How can you use texttt continue statement in C-program? Explain with example.
- 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 simple interest for a given principal value, rate of interest and time period (tenure).
- RAM
- High Level Language
- Syntax Error in C-program
- Logical Operators in C-program.
- What is a single-dimensional array in C?
- What is two-dimensional array in C?
- Give example of a code using a two-dimensional array in C.
- What is the advantage of using arrays in C program?
- sec x + log e| cos -1 x + tan -1 y|
- 2 x sqrt 1 + tan x + e -x x 2 .
- log 10 (100.0) ge pow (3, 2)
- a != 6 b > 5 (if a = 10, b = 12 )
- ! ,(a mid mid b) (! ,a) (if a = true , b = false ).
- 5 times 1.5
- -45.6
- -1.79 e + 4
- “15.75”
- 12, 245
- 2 e + 10.2 .
- Describe the characteristics and the purpose of escape sequence characters.
- Using a texttt while statement
- Using a texttt for statement.
- 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?
- Find the output of the following program by giving appropriate explanation : #include<stdio.h> void main ( ) int a; a=4*8 printf("a=
- 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