LO13_Lesson 5

LO13_Lesson 5

10th Grade

10 Qs

quiz-placeholder

Similar activities

Python - Loops & Lists

Python - Loops & Lists

7th - 11th Grade

15 Qs

Python programming -recap

Python programming -recap

7th - 10th Grade

12 Qs

python loops

python loops

7th - 12th Grade

14 Qs

Python Iteration

Python Iteration

10th Grade

13 Qs

Python Lists

Python Lists

10th Grade

14 Qs

Python 2

Python 2

9th - 12th Grade

10 Qs

For Loops HW

For Loops HW

9th - 12th Grade

12 Qs

Iteration

Iteration

9th - 12th Grade

15 Qs

LO13_Lesson 5

LO13_Lesson 5

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Samantha Cassia

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is iteration known as?

Looping
Crashing
Repeating

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Why is iteration important?
It determines the order in which instructions are carried out
It allows code to be simplified by removing duplicated steps
It allows multiple paths through a program

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following best describes the purpose of a for loop?

A for loop is for doing something an indeterminate number of times.

A for loop is doing something an infinite number of times.

A for loop is for doing something a fixed number of times.

A for loop is for doing something three times.

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following best describes the while loop?

A loop that always executes at least once, regardless of the condition.

A loop that repeats a block of code as long as a specified condition is true.

A loop that executes a specific number of times.

A loop that is used exclusively for iterating over elements in a list.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the range() function do in a for loop?

Creates a copy of the list

Filters elements in a list

Reverses the order of elements

Generates a sequence of numbers

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How many times does the following program print the word ‘computer’:

word= "computer"  
for num in range(1,6):  
    print(word)

5
6
1
0

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following programs prints ten lines?

for i in range(10):

print("hi")

for i = 1 to 10:

print("hi")

for i in 1 - 10:

print("hi")

for i from 0 to 9:

print("hi")

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?