
Conditionals(If, ele elif)
Authored by lenoraann samuel
Fun
6th - 8th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a, b = 12, 5
if a + b:
print('True')
else:
print('False')
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many conditions can be specified in an if block?
Two
Infinite
one
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for the if-else block?
If condition: Code-block Else: code-block
If condition: code-block Elif condition: pass
if()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the shorthand for the else block combined with an if block in python?
else-if
elseIf
elif
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the code given below?
# Code Snippet Starts
if(‘true’):
print(“Hello, from QuizOrbit!”)
else:
print(“Exit!”)
Error
Hello, from QuizOrbit!
Exit
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the code given below?
# Code Snippet Starts
a=12
b=16
if (a-b):
print(‘Quizorbit domain’)
else:
pass
Pass
QuizOrbit domain
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the code given below?
# Code Snippet Starts
a = 12
b = 15
c = 18
if (a>b):
b+=5
elif(b>c):
c+=5
elif(c>a):
a+=9
print(a,b,c)
21 15 18
21 15 23
21 20 23
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
12 questions
Tokyo Olympics 2020/2021
Quiz
•
3rd - 6th Grade
14 questions
Summer Trivia
Quiz
•
8th - 12th Grade
10 questions
Encanto Quiz
Quiz
•
1st - 12th Grade
7 questions
FNF mods
Quiz
•
6th Grade
15 questions
Villa Book Week Quiz
Quiz
•
KG - Professional Dev...
7 questions
dhoni
Quiz
•
6th - 12th Grade
15 questions
G6 Computer Science Quiz 1
Quiz
•
5th - 6th Grade
10 questions
My Hero Academia
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Fun
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
Valentines Day Trivia
Quiz
•
7th Grade
14 questions
Valentines' Day Trivia
Quiz
•
5th - 6th Grade
13 questions
Valentines Day Trivia
Quiz
•
7th Grade
10 questions
Valentines Day
Quiz
•
7th Grade
15 questions
brain teasers
Quiz
•
7th Grade
15 questions
Valentine's Trivia
Quiz
•
5th - 12th Grade
10 questions
Valentine's Day Word Scramble
Quiz
•
1st - 12th Grade