Welcome to Your Quiz: Aptitude Test C Programming For Constants

Name Email
1. Which is false?
2. Whats is the output of this C code?
void main()
{
int const k = 11;
k++;
printf("k is %d", k);
}
3. What is the output of this C code?
int main()
{
printf("C programming %s", "Class by\n%s AllIndiaExams", "SUPER");
}
4. What is the output of this C code?
#define a 20
int main()
{
const int a = 50;
printf("a = %d\n", a);
}
5. What is the output of this C code?
int main()
{
int var = 010;
printf("%d", var);
}
6. What is the output of this C code?
int main()
{
printf("AllIndiaExams\r\nclass\n");
return 0;
}
7. What is the output of this C code?
int main()
{
enum {ORANGE = 12, MANGO, BANANA = 11, APPLE};
printf("APPLE = %d\n", APPLE);
}
8. enum types are processed by?
9. What is the output of this C code?
int main()
{
const int a;
a = 32;
printf("a is %d", a);
return 0;
}
10. For the following code snippet:
char *str = “AllIndiaExams.in\0? “training classes”;
The character pointer str holds reference to string:

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 59 times, 1 visits today)