INSTRUCTIONS

  • Its a evaluation test to qualify in our training / placement process
  • This test includes Technical. There are 40 questions for you to attempt
  • You will have 20 minutes to attempt all the questions
Which of the following cannot be a variable name in C?
Which of the following are C preprocessors?
A variable declared in a function can be used in main?
What is the output of this C code?
int foo();
int main()
{
int i = foo();
}
foo()
{
printf("2 ");
return 2;
}
What is the default return type if it is not specified in function definition?
What is the output of this C code?
int main()
{
void foo();
void f()
{
foo();
}
f();
}
void foo()
{
printf("2 ");
}
Which is valid C expression?
functions can return structure in c?
Does this compile without error?
int main()
{
int k;
{
int k;
for (k = 0; k < 10; k++);
}
}
What is the output of this C code?
int main()
{
printf("AllIndiaExams\r\nclass\n");
return 0;
}
Which keyword is used to come out of a loop only for that iteration?
C99 standard guarantees uniqueness of ____ characters for internal names.
typedef which of the following may create problem in the program?
typedef declaration:
Which of the following is not a valid C variable name?
The following query belongs to which condition types?
SELECT fname
FROM person
WHERE dept_id= (SELECT dept_id FROM department WHERE names=’s’);
What is the output of this C code?
void main()
{
double k = 0;
for (k = 0.0; k < 3.0; k++);
printf("%lf", k);
}
The C-preprocessors are specified with _________symbol.estion!
Preprocessor feature that supply line numbers and file names to compiler is
called?
What is the output of this C code?
#define a 20
int main()
{
const int a = 50;
printf("a = %d\n", a);
}
Comment on the output of this C code?
int const print()
{
printf("AllIndiaExams.in");
return 0;
}
void main()
{
print();
}
functions can return enumeration constants in c?
Which of the following is not a valid variable name declaration?
All keywords in C are in?
What is the output of this C code?
void foo();
int main()
{
void foo();
foo();
return 0;
}
void foo()
{
printf("2 ");
}
What is the output of this C code?
void main()
{
int k = 4;
float k = 4;
printf("%d", k)
}
Which of the following is not a valid variable name declaration?
enum types are processed by?
What is the output of this C code?
typedef struct p
{
int x, y;
}k;
int main()
{
struct p p = {1, 2};
k k1 = p;
printf("%d\n", k1.x);
}
Which keyword can be used for coming out of recursion?
Property which allows to produce different executable for different platforms
in C is called?
What is the output of this C code?
int main()
{
int a = 0, i = 0, b;
for (i = 0;i < 5; i++)
{
a++;
continue;
}
}
Which of the following is not a valid variable name declaration?
Variable name resolving (number of significant characters for uniqueness of variable) depends on?
What is the output of this C code?
void main()
{
double k = 0;
for (k = 0.0; k < 3.0; k++)
printf("Hello");
}
What is the output of this C code?
int main()
{
int y = 10000;
int y = 34;
printf("Hello World! %d\n", y);
return 0;
}
C preprocessors can have compiler specific features.
The name of the variable used in one function cannot be used in another function?
What is the output of this C code?
int main()
{
int var = 010;
printf("%d", var);
}
What is the output of this C code?
int main()
{
const int a;
a = 32;
printf("a is %d", a);
return 0;
}

Name
Email
Phone