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
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?
Similar Resources on Wayground
10 questions
WATER BODIES
Flashcard
•
6th Grade
6 questions
Class rules
Flashcard
•
5th Grade
10 questions
Past Continuous Tense
Flashcard
•
5th - 6th Grade
3 questions
Decimal to binary
Flashcard
•
7th Grade
9 questions
Vocabulary Flashcards
Flashcard
•
5th Grade
8 questions
Tablet Parts
Flashcard
•
KG
7 questions
Сравнительные прилагательные
Flashcard
•
6th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade