Search Header Logo

Iteration

Authored by Louise Lockwood

Computers

9th - 12th Grade

Used 115+ times

Iteration
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a Count-Controlled loop?

for loop

while loop

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A count controlled loop will..

Repeat code until a condition is met

Repeat code a specific amount of times

Repeat code a random amount of times

None of the above

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What will this code do?

Print Numbers 1-11

Print Numbers 1-10

Print Numbers 2-10

Print Error

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What sort of loop is this?

Count Controlled

Condition Controlled

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these operators means EQUAL TO?

'='

'=>'

'<='

'=='

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What will be the output of this code?

1,2,3,4,5,6,7,8,9,10,11,12

0,2,4,6,8,10

2,4,6,8,10,12

2,4,6,8,10

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these will allow me to count from 0-20 in steps of 5?

for x in range(0,20):

print(x)

while x = (0,20,5):

print(x)

for x in range(0,21,5):

print(x)

for x in range(0,21,5):

print(y)

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?