
Python If ... Else

Quiz
•
Other
•
12th Grade
•
Medium
Amy Austin
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'if' keyword in Python signify?
Start of a loop
A function declaration
Start of a conditional statement
Definition of a variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator is used in Python to check if two values are equal?
===
!=
=
==
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used in Python to define an alternative condition if the initial 'if' condition is not met?
except
otherwise
elif
else
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the conditional statement if 'a = 33' and 'b = 200' and the condition is 'if b > a'?
No output
'b is greater than a'
'b equals a'
'b is less than a'
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does Python use to define the scope of a block of code?
Curly brackets
Parentheses
Indentation
Quotation marks
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to reverse the result of a conditional statement in Python?
invert
opposite
not
reverse
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, what does the 'and' keyword do?
Creates a list
Combines two conditional statements
Adds two numbers
Combines two strings
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Creative Commons

Quiz
•
6th - 12th Grade
10 questions
Python Classes and Objects

Quiz
•
12th Grade
10 questions
Python - Conceptos teóricos

Quiz
•
12th Grade
10 questions
ALL BOARDS SUBJECT CUP-average

Quiz
•
KG - Professional Dev...
10 questions
Python armenia

Quiz
•
1st Grade - University
15 questions
Literasi Informasi

Quiz
•
KG - University
10 questions
CONDITIONALS

Quiz
•
12th Grade
10 questions
Search Engine Optimisation Quiz

Quiz
•
12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade