Python Loops

Python Loops

Assessment

Flashcard

Other

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

24 questions

Show all answers

1.

FLASHCARD QUESTION

Front

The program above

Media Image

Back

prints all the odd numbers between 1 and 20

2.

FLASHCARD QUESTION

Front

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

Media Image

Back

Media Image

3.

FLASHCARD QUESTION

Front

The above program prints

Media Image

Back

Numbers 1 to 10 in reverse order

4.

FLASHCARD QUESTION

Front

The program above prints each number between 1 and 10

Media Image

Back

as many times as the number itself

5.

FLASHCARD QUESTION

Front

The program above prints each number between 1 and 10

Media Image

Back

as many times as the number itself

6.

FLASHCARD QUESTION

Front

How many times will 1 be printed? *Hint: the reversed function makes no difference :)

Media Image

Back

3

7.

FLASHCARD QUESTION

Front

What is the output? Options: Syntax error, prints numbers 0 to 100, prints numbers 1 to 100, prints numbers 0 to 99, prints numbers 1 to 99

Media Image

Back

Syntax error

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?