Output Questions Set 3
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 <stdio.h>
int main()
{
int c;
c=(10*20,30,2*3,4*5);
printf(“c= %d\n”,c);
return 0;
}Correct
Incorrect
-
Question 2 of 10
2. Question
1 points#include <stdio.h>
int main()
{
int a;
a=printf(“hello hi”);
a=printf(“Welcome”);
printf(“%d”,a);
printf(“%d”,a);
return 0;
}Correct
Incorrect
-
Question 3 of 10
3. Question
1 points#include <stdio.h>
int main()
{
float me = 1.1;
double you = 1.1;
if(me==1.1f)
printf(“Yes”);
else
printf(“No”);
return 0;
}Correct
Incorrect
-
Question 4 of 10
4. Question
1 points#include <stdio.h>
int main()
{
int c[ ]={2.8,3.4,4,6.7,5};
int j,*p=c;for(j=0;j<5;j++)
{
printf(” %d “,*p);
++p;
}
return 0;
}Correct
Explanation:
Initially, pointer c is assigned to p.
In the loop p itself is incremented.
So the values 2 3 4 6 5 will be printed.Incorrect
Explanation:
Initially, pointer c is assigned to p.
In the loop p itself is incremented.
So the values 2 3 4 6 5 will be printed. -
Question 5 of 10
5. Question
1 points#include <stdio.h>
int i=30;
int main()
{
printf(“%d”,i);
i=((i+20),100);
printf(“%d”,i);return 0;
}Correct
Incorrect
-
Question 6 of 10
6. Question
1 points#include <stdio.h>
int main()
{
int i=-1,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 7 of 10
7. Question
1 points#include <stdio.h>
int main()
{
int i=0,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 8 of 10
8. Question
1 points#include <stdio.h>
int main()
{
int i=7,j=0,k=3,l=2,m;
m=i++&&j++&&k++||l++;
printf(“%d %d %d %d %d”,i,j,k,l,m);
return 0;
}Correct
Incorrect
-
Question 9 of 10
9. Question
1 points#include <stdio.h>
int main()
{
char *p;
printf(“%d”,sizeof(*p));
return 0;
}Correct
As size of char is 1
Incorrect
As size of char is 1
-
Question 10 of 10
10. Question
1 points#include <stdio.h>
int z;
int main()
{
if(z)
printf(“Hello”);
else
printf(“World”);
return 0;
}Correct
z if a global variable and by default its value is zero(0).
Incorrect
z if a global variable and by default its value is zero(0).