
Python Quiz: If Statement
Authored by Kelzang Lethro
others
7th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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?
Similar Resources on Wayground
18 questions
Wildfire Quiz Ch. 1 - 7
Quiz
•
6th - 8th Grade
15 questions
Narrative Essay Structure Quiz
Quiz
•
7th Grade
11 questions
Unit 6 Vocab
Quiz
•
7th Grade
12 questions
Church vs. State/Innovations in Thinking Test
Quiz
•
6th - 8th Grade
18 questions
Electricity
Quiz
•
7th Grade
10 questions
Realidades 1A verbs with "gustar"
Quiz
•
7th Grade
10 questions
BC, AD, BCE, CE QUIZ
Quiz
•
7th Grade - University
13 questions
Lightning Thief Chapter 4: My Mother Teaches Me Bullfighting
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for others
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
22 questions
distributive property
Quiz
•
7th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
20 questions
Ethos, Pathos, Logos Practice
Quiz
•
6th - 7th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Main Idea and Supporting Details
Quiz
•
7th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade