1. 

What will be the output of the program?

#include<stdio.h>
int main()
{
    float a=0.7;
    if(a < 0.7)
        printf("C\n");
    else
        printf("C++\n");
    return 0;
}

A. C
B. C++
C. Compiler error
D. Non of above

2. 

What will be the output of the program?

#include<stdio.h>
int main()
{
    float *p;
    printf("%d\n", sizeof(p));
    return 0;
}

A. 2 in 16bit compiler, 4 in 32bit compiler
B. 4 in 16bit compiler, 2 in 32bit compiler
C. 4 in 16bit compiler, 4 in 32bit compiler
D. 2 in 16bit compiler, 2 in 32bit compiler

3. 

What will be the output of the program?

#include<stdio.h>
int main()
{
    float fval=7.29;
    printf("%d\n", (int)fval);
    return 0;
}

A. 0
B. 0.0
C. 7.0
D. 7

4. 

What will be the output of the program?

#include<stdio.h>
#include<math.h>
int main()
{
    printf("%f\n", sqrt(36.0));
    return 0;
}

A. 6.0
B. 6
C. 6.000000
D. Error: Prototype sqrt() not found.

5. 

What will be the output of the program?

#include<stdio.h>
#include<math.h>
int main()
{
    printf("%d, %d, %d\n", sizeof(3.14f), sizeof(3.14), sizeof(3.14l));
    return 0;
}

A. 4, 4, 4
B. 4, 8, 8
C. 4, 8, 10
D. 4, 8, 12