
11/8 GWC Review (For loops, if statements, lists)
Authored by GWC Lowell
Computers
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for i in range(5):
print(i)
#What will be printed?
1 2 3 4 5
0 1 2 3 4
1 2 3 4
2 3 4 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for i in range(3, 9)
print (i)
#What will be printed?
1 2 3 4 5 6 7 8 9
3 4 5 6 7
3 4 5 6 7 8 9
3 4 5 6 7 8
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed?
[2, 4, 6, 8, 10]
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[1, 3, 5, 7, 9]
[0]
4.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
How can we print "GWC" 20 times? Fill in the blank!
for x in range( (a) ):
print("GWC")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the output of the following code:
coffee
drink
coffee
tea
water
juice
soda
["coffee", "tea", "water", "juice", "soda"]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the output of the following code:
2 hello! 4 hello! 6 hello! 8 hello!
2 4 6 8
hello!
hello!
hello!
hello!
hello!
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these will produce values equal to list?
range(3) - 1
range(4) - 1
range(5) - 1
range(-1, 3)
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?