Search Header Logo

Loops Exam

Authored by Edgardo(US/PR/Prof) Rivera

Computers

11th Grade

Used 9+ times

Loops Exam
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

On what number do programmers begin to count from?

1

2

0

3

2.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

A ________ is a loop that can execute a set of statements as long as the condition is true

3.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

A _______ can be used to iterate through a sequence (list, string) or it can be used to iterate a statement a set number of times.

4.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

The _____ function returns a sequence of numbers, starting from 0 by default, and increments by 1 (by default), and ends at a specified number.

len()

range()

print()

append()

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

With the _____ statement we can stop the loop before it has looped through all the items.

break

continue

pass

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

With the ________ statement we can stop the current iteration, and continue with the next:

continue

pass

break

print

7.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

Media Image

What will this print?

1,2,3,4

6,7,8,9

2,3,4,5

3,4,5,6

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?