
units 3 & 4 code hs

Quiz
•
Computers
•
8th - 12th Grade
•
Easy
Hannah E
Used 16+ times
FREE Resource
Student preview

21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many possible values are there for a boolean variable?
1
2
3
There is an infinite number of possibilities.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assume you are writing a program, and you have a boolean variable called b, defined like so:
b = True
Pick the correct if statement to follow the code above. The if statement should be correct Python, and the body of the if statement should only run if b is True.
if b:
print("b is True!")
if b:
print("b is True!")
if True:
print(b)
if True:
print(b
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this Python expression evaluate to?
100 != 100
True
False
"False"
"True"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following programs will run but will not print anything?
x = True
if x:
print("hi")
if False:
print("hi")
x = False
if x:
print("hi")
else:
print("hello")
if False:
print "hi"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a comparison operator?
<=
!=
?
>
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a logical operator in Python?
and
or
not
because
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following conditions tell me to sleep if my alarm did not go off (alarm = False) and I’m tired (tired = True)?
if alarm and tired:
sleep
if not alarm or tired:
sleep
if not alarm and tired:
sleep
if not alarm and not tired:
sleep
Create a free account and access millions of resources
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade