ISRO Quiz 2023 19
Attempt now to get your rank among 47 students!
Question 1
#include<stdio.h>
void main()
{
int a = 3;
if (a--, --a, a--, a)
printf(“BYJU’S);
else
printf(“EXAM Prep”);
}
Question 2
#include<stdio.h>
void main()
{
switch (5||2| 1)
{
case 3&2; printf(“BYJU’S Exam”);
break;
case -~11 : printf(“Prep”);
break;
case 6-3<<2: printf(“Sahi”);
break;
case 5>=5: printf(“Ha”);
}
}
What is the output of the above code?
Question 3
#include<stdio.h>
void main()
{
int a = 3, b = 2;
a = a ==b ==0;
switch (1)
{
a = a + 10;
}
sizeof(a++);
printf(“%d”,a);
}
Question 4
#include<stdio.h>
int main()
{
int i = 100;
switch (i);
{
default : printf(“Neeraj”);
case 2 …10 : printf(“GATE”);
case 1+2*3 : printf(“2”);
break;
case 1||2 : printf(“0”);
break;
case 10.2 : printf(“22”);
}
}
What is the output of the above code?
Question 5
Assumptions:
I. Some other books were available on this topic.
II. You can write lucid books on very few topics.
- 47 attempts
- 0 upvotes
- 0 comments