
Python Quiz: If Statement
Quiz
•
others
•
7th Grade
•
Medium
Kelzang Lethro
Used 4+ times
FREE Resource
Enhance your content
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary coding concept discussed in Lesson 7?
Variables
If statement
Functions
Loops
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to check if an obstacle is ice?
smash()
is_box()
is_ice()
is_fence()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an if statement?
To execute code randomly
To execute code regardless of the condition
To execute code only if a condition is True
To execute code only if a condition is False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the example given, what will be printed if x = 50?
50 is greater than 10
10 is less than 50
50 is less than 10
10 is greater than 50
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax of an if statement in Python?
if condition: #code to execute if the condition is true
if condition: //code to execute if the condition is true
if condition; #code to execute if the condition is true
if condition; //code to execute if the condition is true
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the is_ice() method do?
Checks if an obstacle is box
Makes the dragon melt the ice obstacles
Checks if an obstacle is ice
Makes the dragon smash the box and fence obstacles
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the fire_at() method?
Makes the dragon smash the box and fence obstacles
Checks if an obstacle is box
Makes the dragon melt the ice obstacles
Checks if an obstacle is ice
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Gregor Mendel and His Contributions to Genetics
Quiz
•
7th Grade
20 questions
7th Grade Prefixes & Suffixes Assessment
Quiz
•
7th Grade
10 questions
"Two Kinds" Selection Quiz
Quiz
•
7th Grade
14 questions
The Judicial Branch Test
Quiz
•
6th - 8th Grade
10 questions
Characteristics of Earth for Life in Space
Quiz
•
7th Grade
18 questions
Soccer Quiz
Quiz
•
6th - 8th Grade
14 questions
Chain Drive
Quiz
•
6th - 8th Grade
14 questions
The Letter to Theodore Roosevelt Test
Quiz
•
7th 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 others
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
20 questions
Morpheme Mastery Quiz for Grade 7
Quiz
•
7th Grade
4 questions
End-of-month reflection
Quiz
•
6th - 8th Grade