
Quiz on Python While Loop
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
nguyentgvi Tuongvzi
FREE Resource
Enhance your content in a minute
100 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the Python programming language, which of the following syntax for a loop with an unknown number of iterations is correct?
while
while
while
while
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the Python programming language, when does a while loop end?
When the condition is false.
When the required number of loops is reached.
When the output is found.
When the condition is true.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the Python programming language, the loop structure with an unknown number of iterations is
while
while
for in range(m,n):
for in range(m,n)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The statement for an unknown number of iterations is
for.
while.
if.
in.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following statement, how much will the variable i increase by each iteration?
1.
2.
3.
4.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: x = 1 while (x <= 5): print("python") x = x + 1
5 times python.
4 times python.
3 times python.
No output.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: x = 1 while (x <= 5): print("python") x = x + 1
5 times python.
4 times python.
3 times python.
No output.
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
97 questions
qizi tin hoc sieu cap 10a1
Quiz
•
10th Grade
100 questions
IMRTD U2 Infraestructura de red
Quiz
•
10th Grade
100 questions
ICT Input Output
Quiz
•
10th Grade - University
103 questions
Soal SIMDIG PAS Genap
Quiz
•
9th - 12th Grade
99 questions
ÔN TẬP TRẮC NGHIỆM CUỐI HỌC KÌ 1 TIN HỌC 10
Quiz
•
10th Grade
97 questions
SQL: GROUP Functions
Quiz
•
8th Grade - Professio...
100 questions
Information Systems
Quiz
•
1st - 10th Grade
100 questions
Computer Architecture Year 7 EOU Test
Quiz
•
6th Grade - University
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
