
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
105 questions
IT Fundamentals
Quiz
•
9th - 12th Grade
101 questions
Dasar TJKT Kuis Bab K3LH
Quiz
•
10th Grade
98 questions
FIRST QUARTERLY EXAMINATION - GRADE 4 - HELE/COMPUTER
Quiz
•
4th Grade - University
100 questions
Revision Fundamentals to Secondary Storage Quiz
Quiz
•
10th - 11th Grade
100 questions
Computers Final
Quiz
•
7th Grade - University
96 questions
Algorithms
Quiz
•
10th Grade
100 questions
Competency 7
Quiz
•
10th Grade
102 questions
Quiz về Tổng khởi nghĩa tháng Tám năm 1945
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
