for loop

for loop

7th Grade

6 Qs

quiz-placeholder

Similar activities

Code.org Course in Vocabulary

Code.org Course in Vocabulary

6th - 8th Grade

10 Qs

Code.org Express Course

Code.org Express Course

6th - 8th Grade

10 Qs

Code.org Vocabulary Review

Code.org Vocabulary Review

6th - 8th Grade

10 Qs

Code Vocabulary

Code Vocabulary

6th - 8th Grade

10 Qs

Goat Simulator

Goat Simulator

4th Grade - Professional Development

10 Qs

PR 4 - Loops

PR 4 - Loops

KG - University

8 Qs

Programming

Programming

1st - 10th Grade

10 Qs

KS3 Computing -- Iteration: FOR or WHILE?

KS3 Computing -- Iteration: FOR or WHILE?

7th - 9th Grade

10 Qs

for loop

for loop

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Tshering Dema

Used 2+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.       What does a for loop do in Python?

Stores data

Repeats a block of code for each item in a list

Stops a program

Takes input from the user

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct for loop in Python?

for x to y in list:

loop item in list:

for item in list:

repeat list:

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which is the loop variable in this code?

fruits

for

fruit

print

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this code?

cow goat sheep

a a a

goat cow sheep

sheep cow goat

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times does this loop run?

1

2

3

4

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

Fill in the blank: