Control flow statement 1
Quiz-summary
0 of 10 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Information
Control Flow Statements:
Questions related to
* if condition
* switch statement
* for loop
* while loop
* do while loop
* break
* continue
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 pointsWhat will be the output of following program ?
#include<stdio.h>
void main()
{
int num=10;
if(num)
printf(“If Executed”);
else
printf(“Else Executed”);
}Correct
Incorrect
-
Question 2 of 10
2. Question
1 pointsWhat will be the output of following program ?
#include<stdio.h>
void main()
{
if(-100)
printf(“Negative number”);
else
printf(“Positive Number”);
}Correct
Incorrect
-
Question 3 of 10
3. Question
1 pointsWhat will be the output of following program ?
#include<stdio.h>
void main()
{
if(1 || 0)
printf(“Hello”);
else
printf(“World”);
}Correct
Incorrect
-
Question 4 of 10
4. Question
1 pointsWhat will be the output of following program ?
#include<stdio.h>
void main()
{
if(“Amit”)
printf(“Hello”);
else
print(“World”);
}Correct
Incorrect
-
Question 5 of 10
5. Question
1 pointsWhat will be the output of following program ?
#include<stdio.h>
void main()
{
int a=1,b=2;
if(printf(“%d”,printf(“123”)))
{
printf(“Connected”);
}
else
{
printf(“Disconnected”);
}
}Correct
Incorrect
-
Question 6 of 10
6. Question
1 pointsWhat will be the output of following program ?
#include<stdio.h>
void main()
{
int a=1,b=2;
if(printf(“Amit Kumar”))
{
printf(“Hello”);
}
else
{
printf(“World”);
}
}Correct
Incorrect
-
Question 7 of 10
7. Question
1 pointsWhat will be the output of following program ?
#include<stdio.h>
void main()
{
if(!printf(“Mobile”))
{
printf(“Computer”);
}
else
{
printf(“Laptop”);
}
}Correct
Incorrect
-
Question 8 of 10
8. Question
1 pointsWhat will be the output of following program ?
#include<stdio.h>
void main()
{
int a=10,b=20;
if(a=b)
{
printf(“Computer”);
}
else
{
printf(“Laptop”);
}
}Correct
Incorrect
-
Question 9 of 10
9. Question
1 pointsWhat will be the output of following program ?
#include<stdio.h>
void main()
{
int a=10,b=20;
if(a==b)
{
printf(“Computer”);
}
else
{
printf(“Laptop”);
}
}Correct
Incorrect
-
Question 10 of 10
10. Question
1 pointsWhat will be the output of following program ?
#include<stdio.h>
void main()
{
int a=10,b=0;
if(a || b)
{
printf(“Computer”);
}
else
{
printf(“Laptop”);
}
}Correct
Incorrect