Iteration Recap

Iteration Recap

8th - 9th Grade

16 Qs

quiz-placeholder

Similar activities

P5.js Conditional Statements in Computer Science

P5.js Conditional Statements in Computer Science

9th - 12th Grade

15 Qs

KS4 Python While Loops and For Loops

KS4 Python While Loops and For Loops

9th - 11th Grade

13 Qs

COSC 1 Final

COSC 1 Final

9th - 10th Grade

15 Qs

Ks3 Baseline assessment Computer Science

Ks3 Baseline assessment Computer Science

6th - 8th Grade

21 Qs

L3: Understanding Security Policies

L3: Understanding Security Policies

9th - 12th Grade

21 Qs

Loops in Python

Loops in Python

7th - 11th Grade

15 Qs

Introduction to Python programming

Introduction to Python programming

6th - 8th Grade

20 Qs

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Iteration Recap

Iteration Recap

Assessment

Quiz

Computers

8th - 9th Grade

Hard

Created by

R Woodruff

Used 100+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?