1.
The return-type of “printf” is:
A. 
B. 
C. 
D. 
2.
The token ‘sizeof’ is
A. 
B. 
C. 
D. 
3.
The function that calls itself is referred to as:
A. 
B. 
C. 
D. 
4.
The following escape sequence represents a carriage return:
A. 
B. 
C. 
D. 
5.
The conversion character corresponding to long integer is
A. 
B. 
C. 
D. 
6.
Linking during compilation means to connect:
A. 
User defined function header
B. 
User defined function code
C. 
D. 
7.
‘enum’ is a
A. 
B. 
C. 
D. 
8.
The maximum size of the member is the size of which of the following token
A. 
B. 
C. 
D. 
9.
In Pre-processor is taken into consideration by the compiler during
A. 
B. 
C. 
D. 
10.
In procedure oriented programming , the emphasis is on:
A. 
B. 
C. 
D. 
11.
Which of the following is not a valid variable name declaration?
A. 
B. 
C. 
D. 
12.
Variable name resolving (number of significant characters for uniqueness of variable) depends on
A. 
Compiler and linker implementations
B. 
Assemblers and loaders implementations
C. 
D. 
13.
Which is valid C expression?
A. 
B. 
C. 
D. 
14.
What will happen if the below program is executed?
#include
int main()
{
int main = 3;
printf("%d", main);
return 0;
}
A. 
B. 
C. 
D. 
Halt after the “printf” statement
15.
Which of the following cannot be a variable name in C?
A. 
B. 
C. 
D. 
16.
Comment on the output of this C code?
#include
int main()
{
float f1 = 0.1;
if (f1 == 0.1)
printf("equal\n");
else
printf("not equal\n");
return 0;
}
A. 
B. 
C. 
Output depends on compiler
D. 
17.
Comment on the output of this C code?
#include
int main()
{
int a[5] = {1, 2, 3, 4, 5};
int i;
for (i = 0; i < 5; i++)
if ((char)a[i] == '5')
printf("%d\n", a[i]);
else
printf("FAIL\n");
return 0;
}
A. 
The compiler will flag an error
B. 
Program will compile and print 5
C. 
Program will print the ASCII value of 5
D. 
Program will print FAIL for 5 times
18.
What is the output of this C code (on a 32-bit compiler)?
#include
int main()
{
int x = 10000;
double y = 56;
int *p = &x;
double *q = &y;
printf("p and q are %d and %d", sizeof(p), sizeof(q));
return 0;
}
A. 
B. 
C. 
D. 
19.
What is the output of the following C code(on a 64 bit machine)? #include
union Sti
{
int nu;
char m;
};
int main()
{
union Sti s;
printf("%d", sizeof(s));
return 0;
}
A. 
B. 
C. 
D. 
20.
What is the output of this C code?
#include
int main()
{
float x = 'a';
printf("%f", x);
return 0;
}
A. 
B. 
C. 
D. 
21.
What is the output of this program?
void main()
{
int a=b=c=10;
a=b=c=50;
printf(“\n %d %d %d”,a,b,c);
}
A. 
B. 
C. 
D. 
22.
By default a function returns a value of type
A. 
B. 
C. 
D. 
23.
Which is not keyword in ‘C’ ?
A. 
B. 
C. 
D. 
24.
Which is valid string function?
A. 
B. 
C. 
D. 
25.
What will be output if you will compile and execute the following c code?
#include "stdio.h"
#include "string.h"
void main()
{
int i=0;
for(;i
A. 
B. 
C. 
D. 
E.