
11/8 GWC Review (For loops, if statements, lists)

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
GWC Lowell
Used 1+ times
FREE Resource
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 BLANK QUESTION
1 min • 1 pt
How can we print "GWC" 20 times? Fill in the blank!
for x in range(___):
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)
8.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select all of the following statements that remove the middle element 3 from a so that it equals [1, 2, 4, 5]:
a.remove(3)
a[3] = 0
a[2] = []
del a[2]
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What indicates the end of a block of code in Python?
}
A comment
A line that is indented less than the previous line
end
Similar Resources on Wayground
10 questions
C# Programming 2

Quiz
•
12th Grade
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
10 questions
Q&A – Repetition & Indefinite Loops (Primary 4 – 4CT.01)

Quiz
•
4th Grade - University
11 questions
OSPF

Quiz
•
12th Grade
10 questions
Intro to Python

Quiz
•
KG - University
10 questions
مراجعة الوحدة 3 ( البرمجة بواسطة المايكروبت )

Quiz
•
12th Grade
10 questions
HTML introduction

Quiz
•
8th - 9th Grade
10 questions
Struktur Kontrol Looping (Java)

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade