For and While Loops in Python

For and While Loops in Python

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

16 questions

Show all answers

1.

FLASHCARD QUESTION

Front

The program above

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

Back

Media Image

3.

FLASHCARD QUESTION

Front

The above program prints

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

Back

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

5.

FLASHCARD QUESTION

Front

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

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

Back

Prints the phrase "hello world!" 7 times

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?