PYTHON "If" Statement

Flashcard
•
Computers
•
6th Grade
•
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
Similar Resources on Wayground
10 questions
Pop Music

Flashcard
•
5th Grade
11 questions
Python [Basic]

Flashcard
•
KG
6 questions
Narrative Writing Vocabulary

Flashcard
•
6th Grade
7 questions
FNF GLICH

Flashcard
•
KG
6 questions
Dodgers flashcard

Flashcard
•
KG
10 questions
Analyzing Characters and Setting in Print,Non-Print, Digital

Flashcard
•
6th Grade
10 questions
word processing one

Flashcard
•
6th - 8th Grade
11 questions
Hokusai and Final 6th

Flashcard
•
6th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

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

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
21 questions
Input Output Storage Device

Quiz
•
5th - 8th Grade