python loops

python loops

7th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

for---Loop

for---Loop

3rd Grade - University

13 Qs

Python Iteration

Python Iteration

10th Grade

17 Qs

Python Loops Post Test

Python Loops Post Test

9th - 12th Grade

15 Qs

Code.org Express Course Quiz 2

Code.org Express Course Quiz 2

6th - 8th Grade

15 Qs

C++ While Loops

C++ While Loops

6th - 8th Grade

15 Qs

Loops and trace tables

Loops and trace tables

11th Grade

13 Qs

Coding Terms Quiz

Coding Terms Quiz

7th Grade

15 Qs

Python - For Loop

Python - For Loop

8th Grade

12 Qs

python loops

python loops

Assessment

Quiz

Computers

7th - 12th Grade

Medium

Created by

Andreas Kamalnathan

Used 54+ times

FREE Resource

14 questions

Show all answers

1.

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

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The equivalent of the above for loop using the while syntax would be

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The above program prints

Numbers 1 to 10 in reverse order

Numbers 1 to 11 in reverse order

Numbers 1 to 10

Numbers 1 to 11

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will 1 be printed

3

4

5

6

5.

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

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

7.

MULTIPLE CHOICE QUESTION

1 min • 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
It ensures the code works correctly

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?