
Find the Output- Conditional statements and Loop Structure
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Aakanksha Chopra
Used 6+ times
FREE Resource
Enhance your content in a minute
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);
}
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
35 questions
Quiz Informatika (Scratch) Kelas X Smadah
Quiz
•
12th Grade - University
40 questions
Python Quiz
Quiz
•
University
40 questions
KUIS SISTEM OPERASI
Quiz
•
University
37 questions
KUIS 6
Quiz
•
University
41 questions
WINDOWS 10
Quiz
•
University
37 questions
Câu hỏi ôn tập môn Tin học HK1 - Lớp 5
Quiz
•
5th Grade - University
35 questions
Data Visualization
Quiz
•
11th Grade - University
41 questions
Topologie sieciowe- teoria.
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
