Search Header Logo

Review - for Loop in Python

Authored by Wan-hsuan Lin

Computers

12th Grade

Used 3+ times

Review - for Loop in Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When would you use a FOR loop?

When you know how many times you want something to loop

When you don't know how many times you want it to loop

when you have a decision to make

When you need to do calculations

2.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

FOR loops are

loops which run an unknown number of times

loops which run for a specific number of times

the same as if statements

not part of programming

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A FOR Loop is...

A condition controlled loop

A count controlled loop

A selection loop

A sequential loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What do the 3 numbers in range do/mean?

range(end, start, end)

range(start, end, step)

range(end, start, step)

range(start, step, end)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In this code, what is i ?

a while loop

a variable

iteration

a loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In programming, what is iteration?

The repetition of steps within a program

A decision point in a program

The order in which instructions are carried out

Testing a program to make sure it works

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 The character that must be at the end of the line for if, while, for etc.

;

+

\;

:

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?