C LANGUAGE QUIZ
1 .
What will be the value of i ?
float x = 3.3;
int i;
i = (int) x;​

Correct Answer : Option (A)

3
  Show Answer
2 .
Which algorithm is used for searching in the table?

Correct Answer : Option (C)

Hash search 
  Show Answer
3 .
Is the following statement a declaration or definition?
extern int i;​

Correct Answer : Option (D)

Declaration 
  Show Answer
4 .
Which of the following is the proper declaration of a pointer?

Correct Answer : Option (A)

int *x; 
  Show Answer
5 .
if (1) printf(''A''); 
 else printf(''B'');

Correct Answer : Option (A)

  Show Answer
6 .
for (int x=9; x>0; x/=2) 
 printf(''%d'', x);

Correct Answer : Option (C)

9421
  Show Answer
7 .
How do we declare a float pointer?

Correct Answer : Option (A)

float *ptr;
  Show Answer
8 .
What is the result of the following code?
int x=0;
switch(x)
{

  case 1: printf( "FTL" );

  case 0: printf( "FREE" );

  case 2: printf( "TIMELEARN" );

}​

Correct Answer : Option (D)

FREETIMELEARN
  Show Answer
9 .
C preprocessors can have compiler specific features.

Correct Answer : Option (A)

true
  Show Answer
10 .
In a 32-bit compiler, which 2 types have same size?

Correct Answer : Option (C)

int and float
  Show Answer