Python - Chpt 4 - Review

Python - Chpt 4 - Review

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

Cuestionario 1.2 Preguntas posibles

Cuestionario 1.2 Preguntas posibles

7th Grade - University

20 Qs

Year 11 Extra work

Year 11 Extra work

11th Grade

20 Qs

Year 10s quiz

Year 10s quiz

9th Grade

20 Qs

Google Docs Basics Quiz

Google Docs Basics Quiz

9th Grade

20 Qs

Advantages and Disadvantages of Collecting Data

Advantages and Disadvantages of Collecting Data

10th Grade

20 Qs

TO PAS AIJ

TO PAS AIJ

11th Grade

20 Qs

Pointers

Pointers

12th Grade

20 Qs

Google Sheets

Google Sheets

12th Grade

21 Qs

Python - Chpt 4 - Review

Python - Chpt 4 - Review

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Beverly Brown

Used 17+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?