What will be the result of the following code:
x = 5
y = 8
if x > y:
print('Hello')
else:
print('Welcome')
if statment
Quiz
•
Computers
•
10th Grade
•
Easy
Rania Mustafa
Used 28+ times
FREE Resource
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
10 questions
Python - Lists and Elements
Quiz
•
9th - 12th Grade
10 questions
Unit 1 Post Test: Basic Python
Quiz
•
9th - 12th Grade
10 questions
CODEHS Looping Unit 5 Review
Quiz
•
9th - 12th Grade
10 questions
KS3 GCSE Computer Science (Programming / Python)
Quiz
•
7th - 11th Grade
10 questions
Lớp 10: Câu hỏi TN củng cố kiến thức
Quiz
•
10th Grade
6 questions
Procedures Practice Part 2
Quiz
•
9th - 12th Grade
8 questions
Java Conditionals Unit 3
Quiz
•
9th - 12th Grade
10 questions
AP CSP-Review Session 1 MCQ Quiz
Quiz
•
10th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University