Search Header Logo

Iteration Recap

Authored by R Woodruff

Computers

8th - 9th Grade

Used 103+ times

Iteration Recap
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is another word for 'iteration'?

Repetition

Selection

Iteration

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

>
<
>=
<=

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the output of the following code?

count

0,1,2,3,4,5,6,7,8,9

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

How many times will this loop run?

10

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 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 guess != answer:

guess=input()

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which loop is most appropriate to use if I need to continuously check for a correct password?

FOR loop
WHILE LOOP

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

I want to print "Password matched" if the user enters the correct password, otherwise allow them to try again. What is wrong with the code above?

The last line should be outside the loop

A For loop needed to be used

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?