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

Name
Email
Phone