Nested if...else statements

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Used 141+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
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
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
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
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
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
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
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
12 questions
Types of printer

Quiz
•
7th - 8th Grade
10 questions
Python Statements

Quiz
•
5th - 7th Grade
10 questions
Short Cut Keys

Quiz
•
3rd - 10th Grade
10 questions
Advanced Excel

Quiz
•
6th - 8th Grade
10 questions
Списки. Python

Quiz
•
7th Grade
10 questions
Python Inputs

Quiz
•
7th - 8th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
12 questions
Ch-8 Iterative statements in Python

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Digital Footprint

Quiz
•
6th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade