For and While Loops in Python
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Lauren Tan
Used 159+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
18 questions
BTT 3.1. Anakartlar
Quiz
•
9th Grade
15 questions
CIW
Quiz
•
9th - 12th Grade
16 questions
C-Programming Basics
Quiz
•
12th Grade
21 questions
Y9 Creative iMedia RO81 Quiz Part 1
Quiz
•
9th Grade
20 questions
Primary storage
Quiz
•
9th - 11th Grade
14 questions
TRENDS IN ICT
Quiz
•
12th Grade
17 questions
Basic Docs
Quiz
•
8th - 9th Grade
20 questions
CSS 10 - QUIZ
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
