

Exploring Conditional Statements in Python
Interactive Video
•
Mathematics
•
6th - 10th Grade
•
Practice Problem
•
Hard
Standards-aligned
Olivia Brooks
Used 1+ times
FREE Resource
Standards-aligned
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is expected for the variable 'name'?
Boolean
Float
String
Integer
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is expected for the variable 'age'?
Integer
Float
String
Boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a condition in programming?
A statement that always runs
A function that returns a value
A statement that runs only if a certain criteria is met
A loop that runs indefinitely
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you check if a variable 'name' is equal to 'Mike'?
if name != 'Mike'
if name === 'Mike'
if name == 'Mike'
if name = 'Mike'
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should you use to handle different cases of 'Mike' (e.g., 'mike', 'Mike')?
Use a single equal sign
Use a function
Use a loop
Check for both 'mike' and 'Mike'
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used to end an if statement?
.
;
,
:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does an else statement do?
Runs if the if statement is true
Runs if the if statement is false
Runs before the if statement
Runs only if there is no if statement
Tags
CCSS.L.2.1F
CCSS.L.8.1C
CCSS.L.8.3A
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?