for loop

for loop

7th Grade

6 Qs

quiz-placeholder

Similar activities

Game 14: Quizizz! game

Game 14: Quizizz! game

1st - 12th Grade

10 Qs

CS-First/Course 2 Vocabulary Review

CS-First/Course 2 Vocabulary Review

5th - 8th Grade

10 Qs

VB Quiz

VB Quiz

5th Grade - University

10 Qs

Banana Tales Part I (1-40)

Banana Tales Part I (1-40)

6th - 8th Grade

10 Qs

PYTHON (FOR LOOP)

PYTHON (FOR LOOP)

1st - 10th Grade

10 Qs

CODE.ORG VOCAB

CODE.ORG VOCAB

5th - 9th Grade

10 Qs

coding

coding

1st - 7th 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: