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

Name
Email
Phone