
Day 3-4 Review
Authored by Black Pearl
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a=3
b=10
print(a==b)
13
ab
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is 2 << 2?
(Hint: Binary of 2 is 0010)
2
8
4
0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Guess the output:
cars = ["Audi", "Honda", "Toyota", "Porsche"]
print("Honda" in cars)
True
Honda
Error
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = 5
How do you check if x is greater than 7??
if x < 7
if x >= 7
if x == 7
if x > 7
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Guess the Output:
list1 = [1, 3, 4, 4, 6]
list2=[1, 3, 4, 4, 6]
list3 = list1
print(list1 is list2)
print(list1 is list3)
True
False
False
True
True
True
False
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
while True:
print("true")
How many times will this loop will run?
100
1
Infinity
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for i in range(0, 5):
print(i)
what's the value of "i" in the first iteration?
0
3
5
1
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?