
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
39 questions
Java Midterm

Quiz
•
University
39 questions
MidExam- Data Structures and Algorithms

Quiz
•
University
40 questions
Android Development Associate

Quiz
•
University
40 questions
Java-Collections

Quiz
•
University
38 questions
TIN HOC 10 15P

Quiz
•
10th Grade - University
40 questions
Quizz PTS Kelas XI Struktur Data Array

Quiz
•
11th Grade - University
38 questions
Parcial Teoria C

Quiz
•
University
45 questions
IP MIDTERM

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University