
Quiz on Python While Loop

Quiz
•
Computers
•
10th Grade
•
Hard
nguyentgvi Tuongvzi
FREE Resource
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
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade