Search Header Logo

Unit 5 Review

Authored by Julia McGreal

Computers

9th - 12th Grade

Used 26+ times

Unit 5 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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):

Access all questions and much more by creating a free account

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

Already have an account?