Python While Loop Quiz
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Vernon Leigh
Used 13+ times
FREE Resource
Enhance your content in a minute
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this `while` loop do?
a. Prints numbers from 0 to 4
b. Prints numbers from 1 to 5
c. Prints the value of `count` indefinitely
d. Raises an error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code snippet do?
a. Prints even numbers from 10 down to 2
b. Prints odd numbers from 1 to 9
c. Prints even numbers from 10 to -∞
d. Results in an infinite loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this `while` loop print?
a. 0 1 2 3 4
b. 1 2 3 4 5
c. 0 1 2 3
d. Infinite loop of 0s
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which `while` loop correctly prints the first three multiples of 4?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this `while` loop?
a. 2 4 6
b. 2 4 6 8
c. 0 2 4 6
d. 2 4 8
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which `while` loop correctly prints the squares of numbers from 1 to 5?
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
ZOOM QUIZ
Quiz
•
1st - 12th Grade
10 questions
1ª Recuperação - 3° Trim. - Pensamento Computacional - 9º ano
Quiz
•
9th Grade - University
10 questions
Teclas de acceso rápido
Quiz
•
1st - 10th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
9 questions
Napewno tego nie wiesz! - VIKI GABOR
Quiz
•
1st - 10th Grade
10 questions
Conosci Eoc-Desk?
Quiz
•
1st - 12th Grade
10 questions
TQ - Review Quiz Week 1
Quiz
•
9th Grade
10 questions
Pangkalan Data (Kekunci Primer, Kekunci Asing, Kekardinalan)
Quiz
•
7th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
