Output Questions Set 4
Quiz-summary
0 of 10 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Information
Output Questions
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 10 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Answered
- Review
-
Question 1 of 10
1. Question
1 points#include
int main()
{
int i=7,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf(“%d %d %d %d %d”,i,j,k,l,m);
return 0;
}Correct
Incorrect
-
Question 2 of 10
2. Question
1 points#include <stdio.h>
int main()
{
int i=2;
switch(i)
{
default:printf(“zero”);
case 1: printf(“one”);
break;
case 2:printf(“two”);
case 3: printf(“three”);
break;
}
return 0;
}Correct
Incorrect
-
Question 3 of 10
3. Question
1 points#include <stdio.h>
int main()
{
int i=7,j=0,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf(“%d %d %d %d %d”,i,j,k,l,m);
return 0;
}Correct
Incorrect
-
Question 4 of 10
4. Question
1 points#include <stdio.h>
int z=10;
int main()
{
int z=100;
printf(“%d”,z);
return 0;
}Correct
Incorrect
-
Question 5 of 10
5. Question
1 points#include <stdio.h>
int z=10;
int main()
{{
int z=90;
printf(“%d”,z);
}
printf(“%d”,z);
return 0;
}Correct
Incorrect
-
Question 6 of 10
6. Question
1 points#include <stdio.h>
int z;
int main()
{
{
int z=90;
printf(“%d”,z);
}
if(z)
printf(“Good Work”);
else
printf(“Try Again”);
return 0;
}Correct
Incorrect
-
Question 7 of 10
7. Question
1 points#include <stdio.h>
int main()
{
int i=10;i=!(i>14);
printf (“i=%d”,i);return 0;
}Correct
Incorrect
-
Question 8 of 10
8. Question
1 points#include <stdio.h>
int main()
{
int i=100;
switch(i)
{
case 1: printf(“one”);
break;
case 2:printf(“two”);
default:printf(“zero”);
case 3: printf(“three”);
break;
}
return 0;
}Correct
Incorrect
-
Question 9 of 10
9. Question
1 points#include <stdio.h>
int main()
{
int a=10,b=20;
if(a>10)
if(b>=10)
printf(“hello”);
else
printf(“World”);
return 0;
}Correct
Incorrect
-
Question 10 of 10
10. Question
1 points#include <stdio.h>
enum colors {sun,mon,tue,wed,thru,fri,sat};
int main()
{
int n;printf(“Enter number “);
scanf(“%d”,&n);
//what will be the output if input is 5
switch(n)
{
case sun:
printf(“1”);
case mon:
printf(“2”);
case tue:
printf(“3”);
case wed:
printf(“4”);
case thru:
printf(“5”);
case fri:
printf(“6”);
case sat:
printf(“7”);
default:
printf(“hello”);
}
getch();return 0;
}Correct
Incorrect