
Find the Output- Conditional statements and Loop Structure

Quiz
•
Computers
•
University
•
Hard
Aakanksha Chopra
Used 6+ times
FREE Resource
40 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
Q1. What would be the output of the following program:
void main()
{
int a= 300, b, c;
if(a>=400)
b=300;
c=200;
printf(“ \n %d %d ” , b ,c);
}
2.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
What would be the output of the following programs-
void main()
{
int a= 500, b, c;
if(a>=400)
b= 300;
c=200;
printf(“ \n %d %d ” ,b ,c);
}
3.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
void main()
{
int x=10, y=20;
if(x==y);
printf(“ \n %d %d” ,x ,y);
}
4.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
void main()
{
int x=3, y=5;
if(x==3)
printf(“ \n %d” ,x);
else
printf(“ \n %d” ,y);
}
5.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
void main()
{
int x=3;
float y=3.0;
if(x==y)
printf(“ \n x and y are equal”);
else
printf(“ \n x and y are not equal”);
}
6.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
void main()
{
int x=3, y, z;
y=x=10;
z=x<10;
printf(“ \n x = %d y = %d z = %d” ,x ,y, z); }
7.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
void main()
{
int k=35;
printf(“ \n %d %d %d”, k = =35, k= 50, k>40);
}
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Trivia(Explore in depth)

Quiz
•
University
35 questions
DDP UA

Quiz
•
University
40 questions
C++ Basics

Quiz
•
University
40 questions
IOT_SARS

Quiz
•
University
40 questions
Java Quiz

Quiz
•
University
40 questions
Playing Code!

Quiz
•
University
35 questions
QUIZ PEMROGRAMAN 1 REG. PAGI

Quiz
•
University
35 questions
One Dimensional Array

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade