Search Header Logo

Python Programming - Iteration

Authored by Jon Bridgeman

Computers

9th Grade

Used 714+ times

Python Programming - Iteration
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which python operator means 'less than or equal to'?

>
<
>=
<=

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is another word for 'iteration'?

Selection
Variable Assignment
Repetition
Sequencing

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

How many times will this loop run?

10
9
4
5

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

I want to allow the program to repeatedly ask the user to enter their guess if it does not equal the answer...Which option do I use?

while guess == answer:
    guess=input()
while answer != guess:
guess=input()
while answer =! guess:
guess=input()
while guess != answer:
guess=input()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which word completes this sentence: "Iteration makes code more ___________"

Complex

Efficient

Simple

Straightforward

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A FOR loop is....

A COUNT controlled loop

A CONDITION controlled loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A WHILE loop is....

A COUNT controlled loop

A CONDITION controlled loop

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?