
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
7 questions
Mathematical Operators

Quiz
•
12th Grade
10 questions
Animal Trivia!

Quiz
•
KG - 12th Grade
10 questions
Tuples 3

Quiz
•
12th Grade
10 questions
Python

Quiz
•
9th - 12th Grade
13 questions
Minecraft Education Python

Quiz
•
12th Grade
15 questions
Tech Buzz R1

Quiz
•
12th Grade
10 questions
Python Scope

Quiz
•
12th Grade
12 questions
Crime and Deviance - Globalisation and Media

Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
29 questions
CCG 2.2.3 Area

Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade