PYTHON "If" Statement
Flashcard
•
Computers
•
6th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
In Python, what are if-statements used for?
Back
Decision Making
2.
FLASHCARD QUESTION
Front
What is the output of this code?
click = True
Like = 0
if click:
Like = Like + 1
print(Like)
Back
1
3.
FLASHCARD QUESTION
Front
What is the output of the following code?
Temperature = 20
Thermo = 15
if Temperature < 15:
Thermo = Thermo + 5
print(Thermo)
Back
15
4.
FLASHCARD QUESTION
Front
What is the output of the following code?
Time = "Day"
Sleepy = False
Pajamas = "Off"
if Time == "Night" and Sleepy == True:
Pajamas = "On"
print(Pajamas)
Back
off
5.
FLASHCARD QUESTION
Front
What will be the output of the following code?
def max(a, b):
if a > b:
print('a is the max')
else:
print('b is the max')
max(1,2)
Back
b is the max
6.
FLASHCARD QUESTION
Front
What will the be the output of the following code?
if (10<0) and (0 <-10):
print(“A”)
else:
print(“B”)
Options: A, B, AB, BA
Back
B
7.
FLASHCARD QUESTION
Front
Is the following statement true or false?
More than one condition cannot be used with an IF statement.
Back
False
Create a free account and access millions of resources
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
6 questions
Butterfly Flashcards
Flashcard
•
6th - 8th Grade
6 questions
Fetch-Execute Cycle and CPU Registers
Flashcard
•
KG
10 questions
Noun suffixes -ness, -dom, -ship
Flashcard
•
7th - 8th Grade
7 questions
for zv patho
Flashcard
•
KG
10 questions
Bahasa Inggris Kelas 4 - I go to school after having breakfast
Flashcard
•
6th Grade
6 questions
Apostrophe Contractions
Flashcard
•
5th Grade
11 questions
6th Grade Statistics Vocabulary
Flashcard
•
6th Grade
2 questions
The history of flight
Flashcard
•
6th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade