
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
35 questions
IT-OOPRGO21 PRELIM

Quiz
•
University
40 questions
Elements of a C# program

Quiz
•
University
36 questions
AP CS A unit 1

Quiz
•
11th Grade - University
40 questions
Java Quiz 1

Quiz
•
University
40 questions
Quiz pertemuan 12

Quiz
•
University
37 questions
QUIZ 2: Processing

Quiz
•
7th Grade - University
45 questions
TECHNICAL QUIZ

Quiz
•
University
36 questions
C Programming Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University