if statment
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Rania Mustafa
Used 29+ times
FREE Resource
Enhance your content in a minute
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What will be the result of the following code:
x = 5
y = 8
if x > y:
print('Hello')
else:
print('Welcome')
Hello
Welcome
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
what is the output?
Print "Yes" if a is equal to b, otherwise print "No".
Print "No" if a is equal to b, otherwise print "Yes".
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
whta is the output?
print "1" if a is greater than b,
Print "2" if a is equal to b,
otherwise print "3".
Print "1" if a is equal to b,
print "2" if a is greater than b,
otherwise print "3".
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code:
a = 10
b = 5
if a < b:
print('Greater')
else:
print('Smaller or Equal')
Greater
Smaller or Equal
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following code snippet?
num = 3
if num == 3:
print('Three')
elif num > 3:
print('Greater than Three')
Three
Greater than Three
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed by this code?
value = 7
if value >= 10:
print('High')
else:
print('Low')
High
Low
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
9 questions
Java For Loops
Quiz
•
9th - 12th Grade
10 questions
Программирование алгоритма 8 класс
Quiz
•
1st - 10th Grade
10 questions
Computer in the society
Quiz
•
2nd - 10th Grade
10 questions
Scratch intro & Pen Commands Quiz
Quiz
•
1st - 10th Grade
10 questions
BAI 25_10_BAITAP
Quiz
•
10th Grade
10 questions
Python Alternating Turns
Quiz
•
7th - 12th Grade
10 questions
AP CSP Global Impact
Quiz
•
9th - 12th Grade
10 questions
Lesson 01 Unit 1 Excel 2019/365 MOAC
Quiz
•
9th - 12th Grade
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
