Search Header Logo

More Python

Authored by Anne Kohart

Computers

10th - 12th Grade

Used 60+ times

More 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

Media Image

How many times does this loop execute?

5

6

Depends how many times the mouse is pressed

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value of the variable index the first time the loop executes?

0

1

red

orange

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will the for loop on line 11 execute?

5, there are 5 children in circles

7, there are 7 colors in the colorList

There will be an error because there are 5 circles but 7 colors

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Another way to write colorList[4] is:

colorList[len(colorList)]

colorList[len(colorList) - 1]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What happens on line 17 when a mouse is clicked

the first circle is removed from the list

the second circle is removed from the list

an error occurs after the second mouse click

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times do you think the for loop on line 7 will execute?

6 times

5 times

infinite amount of times

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What do you think will be the first value of the variable index?

red

0

1

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?