Python - Iteration (For Loops)

Python - Iteration (For Loops)

10th Grade

20 Qs

quiz-placeholder

Similar activities

Foundations of Programming

Foundations of Programming

9th - 10th Grade

18 Qs

Loops

Loops

10th - 12th Grade

17 Qs

AQA GCSE Computer Science - 3.2.2 Programming Concepts

AQA GCSE Computer Science - 3.2.2 Programming Concepts

8th - 10th Grade

20 Qs

ICS Test #4 review

ICS Test #4 review

9th - 12th Grade

15 Qs

FOR and WHILE loop in Python

FOR and WHILE loop in Python

9th - 12th Grade

18 Qs

National 4/5 Programming (VB)

National 4/5 Programming (VB)

9th - 11th Grade

18 Qs

Python Iteration

Python Iteration

10th Grade

17 Qs

COSC 1 Final

COSC 1 Final

9th - 10th Grade

15 Qs

Python - Iteration (For Loops)

Python - Iteration (For Loops)

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Marc Hoy

Used 255+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will this code output?

nothing at all

dude

dude, 4 times

dude, 6 times

dude, 3 times

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In this code, what is the "i"

a while loop

a variable

iteration

a loop

random letter

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In this code, what is "range"?

a function

a variable

iteration

a loop

selection

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In this code, what is "for"?

a function

sequence

iteration

a while loop

selection

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In this code, how would the code need to be changed, to print "dude" 10 times?

change the "dude", to a 10

change the 4, to a 10

change the for, to a while

change the 4, to an 11

change the print to an input()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be displayed?

1,2,3,4

2,3,4,5

1,1,1,1

1,2,3

0,1,2,3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be displayed?

Nothing

5, 6, 7, 8, 9

1, 2, 3, 4, 5

1, 1, 1, 1, 1

5, 6, 7, 8, 9, 10

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?