
Nested if...else statements
Computers
6th - 8th Grade
Used 148+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result?
number_of_coins = 10 .
if number_of_coins == 6: .
. print("You can buy some gum")
else: .
if number_of_coins == 10:
. print("You are rich")
else: .
. print("Get a job!")
You can buy some gum
You are rich
Get a job!
You are rich
Get a job!
Get a job!
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result?
number_of_coins = 6 .
if number_of_coins == 6: .
. print("You can buy some gum")
else: .
if number_of_coins == 10:
. print("You are rich")
else: .
. print("Get a job!")
You can buy some gum
You are rich
Get a job!
You are rich
Get a job!
Get a job!
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result?
number_of_coins = 1 .
if number_of_coins == 6: .
. print("You can buy some gum")
else: .
if number_of_coins == 10:
. print("You are rich")
else: .
. print("Get a job!")
You can buy some gum
You are rich
Get a job!
You are rich
Get a job!
Get a job!
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result?
number_of_coins = 1 .
if number_of_coins < 6: .
. print("You can buy some gum")
else: .
if number_of_coins == 10:
. print("You are rich")
else: .
. print("Get a job!")
You can buy some gum
You are rich
Get a job!
You are rich
Get a job!
Get a job!
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result?
number_of_coins = 7 .
if number_of_coins > 6: .
. print("You can buy some gum")
else: .
if number_of_coins < 10:
. print("You are rich")
else: .
. print("Get a job!")
You can buy some gum
You are rich
Get a job!
You are rich
Get a job!
Get a job!
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result?
number_of_coins = 6 .
if number_of_coins > 6: .
. print("You can buy some gum")
else: .
if number_of_coins < 10:
. print("You are rich")
else: .
. print("Get a job!")
You can buy some gum
You are rich
Get a job!
You are rich
Get a job!
Get a job!
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result?
number_of_coins = 3 .
if number_of_coins > 6: .
. print("You can buy some gum")
else: .
if number_of_coins < 10:
. print("You are rich")
else: .
. print("Get a job!")
You can buy some gum
You are rich
Get a job!
You are rich
Get a job!
Get a job!
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?