For and While Loops in Python

For and While Loops in Python

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Wayground Content

Used 5+ times

FREE Resource

Student preview

quiz-placeholder

16 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

Look at the following code, what will it generate? Options: 1,2,3,4,5,6,7,8,9,10,11,12, 0,1,2,3,4,5,6,7,8,9,10,11,12, 1,2,3,4,5,6,7,8,9,10,11,12,13, 0,1,2,3,4,5,6,7,8,9,10,11,12,13

Media Image

Back

0,1,2,3,4,5,6,7,8,9,10,11,12

5.

FLASHCARD QUESTION

Front

Media Image

Back

Media Image

6.

FLASHCARD QUESTION

Front

What best describes what is printed by the following code? Options: Prints the numbers 0 through 6, Prints h e l l o w, Prints the phrase "hello world!" 7 times, Prints "hello w" 7 times

Media Image

Back

Prints the numbers 0 through 6

7.

FLASHCARD QUESTION

Front

What best describes what is printed by the following code? Options: Prints the numbers 0 through 6, Prints h e l l o w, Prints the phrase "hello world!" 7 times, Prints "hello w" 7 times

Media Image

Back

Prints the phrase "hello world!" 7 times

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?