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
Cyber Security
Quiz
•
1st - 10th Grade
12 questions
Basic Computer Introduction
Quiz
•
5th - 7th Grade
10 questions
MIT App
Quiz
•
6th Grade
10 questions
Emerging technologies
Quiz
•
6th Grade - University
13 questions
5.3. Запис математичних виразів на мові Python
Quiz
•
8th Grade
10 questions
App Development lesson 1
Quiz
•
8th - 9th Grade
10 questions
Website Evaluation
Quiz
•
3rd - 6th Grade
10 questions
Microsoft Teams
Quiz
•
KG - 12th 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
