Python - Chpt 4 - Review

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Beverly Brown
Used 17+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the output of the following code:
numbers = [1, 1, 2, 3]
for number in numbers:
if number % 2 == 0:
continue
print(number)
1 1 2
2
1 1
1 1 3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the output of the following code:
numbers = [2, 4, 6, 8]
for number in numbers:
print("hello!")
hello!hello!hello!hello!
hello!
2 4 6 8
2hello! 4hello! 6hello! 8hello!
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the output of the following code:
for i in range(3):
print(5)
5 5 5
3 3 3 3 3
0 1 2
0 1 2 3 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the output of the following code:
for i in range(3):
print(i)
i i i i
0 1 2
i i i
1 2 3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the output of the following code:
drink_choices = ["coffee", "tea", "water", "juice", "soda"] for for drink in drink_choices:
print(drink)
"coffee"
"coffee" "tea" "water" "juice" "soda"
drink
["coffee", "tea", "water", "juice", "soda"]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the output of the following code:
numbers = [1, 1, 2, 3]
for number in numbers:
if number % 2 == 0:
break
print(number)
1 1 3
2
1 1
1 1 2 3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank with the appropriate while condition in order to print the numbers 1 through 10 in order:
i = 1
____________
print(i)
i += 1
while i <= 10:
while i > 10:
while i < 10:
while i == range(11)
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
مراجعة عامة على المنهج – الجزء الأول

Quiz
•
10th Grade
20 questions
Python First Steps Homework Quiz

Quiz
•
7th - 9th Grade
30 questions
Python Тотальный тест

Quiz
•
KG - 12th Grade
22 questions
Python Control Structures (Unit 4 AP CSP)

Quiz
•
10th Grade
22 questions
Looping dalam Pemrograman

Quiz
•
10th Grade
20 questions
Kuis Informatika kelas X TF dan KDS

Quiz
•
10th Grade
20 questions
Python while loops

Quiz
•
12th Grade
20 questions
TN +2 -LESSON1 FUNCTIONS

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

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade