Python - For Loop

Python - For Loop

8th Grade

12 Qs

quiz-placeholder

Similar activities

Python Basics - Year 8

Python Basics - Year 8

7th - 9th Grade

14 Qs

Python strings

Python strings

8th - 9th Grade

11 Qs

Lists and Loops in Computer Science

Lists and Loops in Computer Science

7th - 11th Grade

15 Qs

Python - Loops & Lists

Python - Loops & Lists

7th - 11th Grade

15 Qs

Python Basics

Python Basics

KG - University

16 Qs

LOOPS

LOOPS

7th - 9th Grade

10 Qs

python loops

python loops

7th - 12th Grade

14 Qs

Arrays

Arrays

KG - University

10 Qs

Python - For Loop

Python - For Loop

Assessment

Quiz

Computers

8th Grade

Hard

Created by

bhoomi raisinghani

Used 17+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 12 pts

In programming, what is iteration?

The repetition of steps within a program

The order in which instructions are carried out

A decision point in a program

Testing a program to make sure it works

2.

MULTIPLE CHOICE QUESTION

1 min • 12 pts

Which two statements are used to implement iteration?
IF and WHILE
ELSE and WHILE
FOR and WHILE
IF and ELSE

3.

MULTIPLE CHOICE QUESTION

1 min • 12 pts

FOR loops are

loops which run an unknown number of times

loops which run for a specific number of times

the same as if statements

not part of programming

4.

MULTIPLE CHOICE QUESTION

1 min • 12 pts

Which kind of loop would be used?


I need a program that will keep letting me add a monthly payment for 12 months.

FOR Loop

WHILE Loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The program above

prints all the odd numbers between 1 and 20

prints all even numbers between 1 and 20

print all the odd numbers between 1 and 21

prints all the even numbers between 1 and 21

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will 1 be printed

3

4

5

6

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in 100 :

print ( i )

Syntax error

prints numbers 0 to 100

prints numbers 1 to 100

prints numbers 0 to 99

prints numbers 1 to 99

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?