Welcome to Your Quiz: Aptitude Test C Programming For Constants

Name Email
1.

What is the output of this C code?
int main()
{
const int a;
a = 32;
printf("a is %d", a);
return 0;
}

(Visited 62 times, 1 visits today)
2.

What is the output of this C code?
int main()
{
enum {ORANGE = 12, MANGO, BANANA = 11, APPLE};
printf("APPLE = %d\n", APPLE);
}

(Visited 62 times, 1 visits today)
3.

Whats is the output of this C code?
void main()
{
int const k = 11;
k++;
printf("k is %d", k);
}

(Visited 62 times, 1 visits today)
4.

enum types are processed by?

(Visited 62 times, 1 visits today)
5.

What is the output of this C code?
#define a 20
int main()
{
const int a = 50;
printf("a = %d\n", a);
}

(Visited 62 times, 1 visits today)
6.

What is the output of this C code?
int main()
{
printf("AllIndiaExams\r\nclass\n");
return 0;
}

(Visited 62 times, 1 visits today)
7.

What is the output of this C code?
int main()
{
int var = 010;
printf("%d", var);
}

(Visited 62 times, 1 visits today)
8.

For the following code snippet:
char *str = “AllIndiaExams.in\0? “training classes”;
The character pointer str holds reference to string:

(Visited 62 times, 1 visits today)
9.

What is the output of this C code?
int main()
{
printf("C programming %s", "Class by\n%s AllIndiaExams", "SUPER");
}

(Visited 62 times, 1 visits today)
10.

Which is false?

(Visited 62 times, 1 visits today)

Thank You for Submitting your response for Quiz

Aptitude Test C Programming For Constants

Please click on View Result Button to see the Result.



(Visited 62 times, 1 visits today)
Show Buttons
Hide Buttons