Unit 5 Review

Unit 5 Review

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Python Iteration

Python Iteration

10th Grade

17 Qs

COSC 1 Final

COSC 1 Final

9th - 10th Grade

15 Qs

Loops

Loops

5th - 12th Grade

16 Qs

Python Loops

Python Loops

9th - 11th Grade

12 Qs

Python list starter

Python list starter

10th Grade - University

12 Qs

CodeHS Python Unit 5 Review

CodeHS Python Unit 5 Review

9th - 12th Grade

15 Qs

CodeHS Python Unit 7 Looping Quiz Review

CodeHS Python Unit 7 Looping Quiz Review

9th - 12th Grade

15 Qs

Python Functions

Python Functions

12th Grade

15 Qs

Unit 5 Review

Unit 5 Review

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Julia McGreal

Used 26+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Which of the following for loops would print the following numbers?

0

1

2

3

4

5

for i in range(5): print(i)

for i in range(1, 5, 1): print(i)

for i in range(6): print(i)

for i in range(0, 5, 1): print(i)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

i = 10

while i > 6:

# Code

Output:

10

9

8

Continue

Break

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in range(3, 10, 3):

# code

Output:

3

Break

Continue

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in range (3, 10, 3):

# code

Output:

3

9

Break

Continue 

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in range(10):

# Code

Output:

0

1

2

break

continue

6.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Media Image

What is the value of num when this loop completes?

2

8

12

20

7.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Three of the for loops below will provide identical values for i. Which for loop will provide values that do not match the others?

for i in range(0, 5):

for i in range(5):

for i in range(0, 5, 1):

for i in range(5, 0, 1):

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?