Signup/Sign In

C Language Interview Preparation Test 3

This Test comprises of questions based on complete concepts of C Language. It is a good test to polish you C skills.
Q. scanf() can be used for reading __________?
Q. 'C Language' allows a three-way transfer of control with the help of __________.
Q. The statement that transfers control to the beginning of the loop is called __________.
Q. A variable which is visible only in the function in which it is defined, is called __________.

Q. The number of arguments supplied from the command line, by convention, is known as __________.
Q. Output of the program given below is?
int i;
main()
{
    printf("%d", i);
}
Q. What will be the output of the following program?
main()
{
    char *p = "ayqm";
    printf ("%c", ++*(p++));
}
Q. What will be the output of the following program?
main()
{
    int i = 5;
    printf("%d", i=++i==6);
}
Q. Determine which of the following is not a valid character constant?

Q. The maximum value that an integer constant can have is __________.
Q. The expression X = 4+2%-8 evaluates to?
Q. What will be the output of following program?
main()
{
    int x=15;
    printf("\n%d,%d,%d", x!=15, x=20, x<30);
}
Q. How many times the following program would print "abc"?
main()
{
    printf("\nabc");
    main();
}
Q. What would be the output of the following program?
# define SQR(X) (X*X)
main()
{
    int a, b = 3;
    a = SQR(b+2);
    printf("\n%d", a);
}
Q. What would be the output of the following program?
#include<stdio.h>
main()
{
    printf("%d%d", sizeof(NULL!), size of(" "));
}

Related Tests: