Nested if...else statements
Quiz
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Medium
Used 143+ times
FREE Resource
Enhance your content in a minute
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!")
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!")
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!")
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!")
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!")
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!")
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!")
Get a job!
8.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result?
number_of_coins = 2 .
if number_of_coins > 6: .
. print("You can buy some gum")
else: .
if number_of_coins < 10:
. print("You are rich")
. print("Get a job!")
Similar Resources on Wayground
10 questions
NETIQUETTE
Quiz
•
7th - 8th Grade
13 questions
ICT and Retail Industry
Quiz
•
8th - 12th Grade
10 questions
Grasshopper
Quiz
•
7th Grade
10 questions
Unit #8 | Worksheet #2
Quiz
•
6th Grade
10 questions
Computer Hardware For Grade 6 Students
Quiz
•
6th Grade
10 questions
Working with Text : Summary
Quiz
•
6th Grade
12 questions
Quiz 5 - Networking and the Internet
Quiz
•
4th - 8th Grade
10 questions
Python ծրագրավորման լեզու
Quiz
•
7th - 10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
