The result of this program:
Friday = False
if Friday:
...print "Jeans day!"
else:
...print "Dress code"
Options: Jeans day, Dress code, Nothing prints, Error

Python booleans & if/elif/else

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
Dress code
2.
FLASHCARD QUESTION
Front
What is the result of the code:
team = "Cowboys"
if team = "Cowboys":
...print "Dallas is #1"
Back
Error
3.
FLASHCARD QUESTION
Front
What is the output of the following code:
income = 4001
if income > 3000:
...print("Income is greater than 3000")
elif income > 4000:
...print("Income is greater than 4000")
Back
Income is greater than 3000
4.
FLASHCARD QUESTION
Front
Suppose you write the code to display "Cannot get a driver's license" if age is less than 16 and "Can get a driver's license" if age is greater than or equal to 16. Which of the following code is the best? Options: if age < 16: ...print("Cannot get a driver's license") if age >= 16: ...print("Can get a driver's license"), if age < 16: ...print("Cannot get a driver's license") else: ...print("Can get a driver's license"), if age < 16: ...print("Cannot get a driver's license") elif age >= 16: ...print("Can get a driver's license"), if age < 16: ...print("Cannot get a driver's license") elif age > 16: ...print("Can get a driver's license") elif age == 16: ...print("Can get a driver's license")
Back
if age < 16:
...print("Cannot get a driver's license")
else:
...print("Can get a driver's license")
5.
FLASHCARD QUESTION
Front
Assume x = 4 and y = 5. Which of the following is true?
Options: x < 5 and y < 5, x < 5 or y < 5, x > 5 and y > 5, x > 5 or y > 5
Back
x < 5 or y < 5
6.
FLASHCARD QUESTION
Front
What is the output of the following code?
ch = "F"
if ch == "f" and ch == "F"
...print(ch)
Back
nothing
7.
FLASHCARD QUESTION
Front
What is the output of the following code?
ch = "F"
if ch == "f" or ch == "F":
...print(ch)
Back
F
Create a free account and access millions of resources
Similar Resources on Quizizz
8 questions
Verbo "Get" para eventos da vida.

Flashcard
•
9th - 12th Grade
9 questions
La tecnologia y el carro

Flashcard
•
9th - 12th Grade
5 questions
American Government Unit 7.3-4

Flashcard
•
9th - 12th Grade
9 questions
Python Review 5/23

Flashcard
•
9th - 12th Grade
10 questions
IB Basic Probability

Flashcard
•
9th - 12th Grade
7 questions
BÀI 8- CHỦ ĐỀ F-TH10

Flashcard
•
9th - 12th Grade
10 questions
Drive Right Chapter 1

Flashcard
•
9th - 11th Grade
14 questions
Javascript Control Structures Practice

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University