
Conditionals(If, ele elif)

Quiz
•
Fun
•
6th - 8th Grade
•
Easy
lenoraann samuel
Used 6+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Arcade makecode

Quiz
•
6th Grade
15 questions
Learning Styles

Quiz
•
6th - 8th Grade
9 questions
Year 7 & 8 - Scratch

Quiz
•
4th - 9th Grade
11 questions
Robotics Spike Prime Sensors and motors quiz

Quiz
•
6th - 8th Grade
10 questions
Edison Robots

Quiz
•
8th Grade
15 questions
Knowledge Test

Quiz
•
1st Grade - University
15 questions
Python Input Basics Quiz

Quiz
•
8th Grade
10 questions
ROBOT MESH BASIC MOVEMENTS

Quiz
•
4th - 6th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade