The program above
For and While Loops in Python

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Lauren Tan
Used 142+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
1 min • 1 pt
The equivalent of the above for loop using the while syntax would be
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
1 min • 1 pt
Look at the following code, what will it generate
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
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
1,2,3,4
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What best describes what is printed by the following code?
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
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What best describes what is printed by the following code?
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
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
AP CA A Unit 4 Review

Quiz
•
11th - 12th Grade
18 questions
Control structures

Quiz
•
10th Grade
17 questions
Tracing Loops in Java

Quiz
•
12th Grade
20 questions
Basic Python

Quiz
•
10th - 12th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
15 questions
Java Beginners

Quiz
•
11th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University