1.
What is the output of the following code?
#include<stdio.h>
main()
{
int n,i;
n=f(6);
printf("%d",n);
}
f(int x)
{
if(x==2)
return 2;
else
{
printf("+");
f(x-1);
}
}
A. 
B. 
C. 
D. 
2.
Which is correct with respect to the size of the data types?
A. 
B. 
C. 
D. 
3.
#include <stdio.h>
int main()
{
reverse(1);
}
void reverse(int i)
{
if (i > 5)
exit(0);
printf("%d\n", i);
return reverse(i++);
}
A. 
B. 
C. 
D. 
4.
What is function srand(unsigned)?
A. 
B. 
C. 
D. 
5.
#define FALSE -1
#define TRUE 1
#define NULL 0
main()
{
if(NULL)
puts("NULL");
else if(FALSE)
puts("TRUE");
else
puts("FALSE");
}
A. 
B. 
C. 
D. 
6.
Void main()
{
int a,b;
a=3,1;
b=(5,4);
printf("%d",a+b);
}
A. 
B. 
C. 
D. 
7.
Int main()
{
int a;
int b=5;
a=0 && --b;
printf("%d%d",a,b);
}
A. 
B. 
C. 
D. 
8.
Void Main()
{
int a=10;
printf("%d", a);
}
A. 
B. 
C. 
D. 
9.
Int main(void)
{
while(".")
{
printf("Quest");
}
return 0;
}
A. 
B. 
C. 
D. 
10.
Int main()
{
char str[10]="Quest";
printf("%d,%d\n",strlen(str),sizeof(str));
return 0;
}
A. 
B. 
C. 
D. 
11.
#include <stdio.h>
int main()
{
int x = 2, y = 0;
int z = y && (y |= 10);
printf("%d\n", z);
return 0;
}
A. 
Undefined behaviour due to order of evaluation
B. 
C. 
D. 
12.
Main(int arg,char **argv)
{
printf("Enter the character");
getchar();
sum(argv[1],argv[2]);
}
sum(num1,num2)
int num1,num2;
{
return num1+num2;
}
A. 
B. 
C. 
D. 
13.
_______ occurs when a result is too large in magnitude to represent errors as a floating-point value of the required type.
A. 
B. 
C. 
D. 
14.
Which one do you like?#include <stdio.h>
int main()
{
int i = 0;
int j = i++ + i;
printf("%d\n", j);
}
A. 
B. 
C. 
D. 
15.
Void test(struct number n)
{
n.x=100;
}
struct number{ int x; };
int main()
{
struct number num;
test(num);
printf("%d\n",num.x);
return 0;
}
A. 
B. 
C. 
D. 
16.
Int main()
{
int x=5;
if(x>=10)
printf("Quest");
printf("CSE");
else printf("2K19");
}
A. 
B. 
C. 
D. 
17.
In the absence of a exit condition in a recursive function, the following error is given __________
A. 
B. 
C. 
D. 
18.
Examination of the program step by step is called ______________
A. 
B. 
C. 
D. 
19.
#include<stdio.h>
int main()
{
int fun={
printf("C for Loop");
};
int x=5;
for(x=0;x<=fun;x++)
{
printf("%x",x);
}
}
A. 
B. 
C for Loop0 1 2 3 4 5 6 7 8 9 a
C. 
D. 
20.
#include<stdio.h>
#define x 5+2
int main( )
{
int i;
i=x*x*x;
printf("%d",i);
return 0;
}
A. 
B. 
C. 
D.