
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
102 questions
Computer Science I 2022-2023

Quiz
•
9th - 12th Grade
100 questions
4B/S END OF TERM QUIZ

Quiz
•
10th Grade
100 questions
WJEC ICT Unit 1 Glossary Quiz

Quiz
•
10th Grade
101 questions
Quiz on Intelligent Spending

Quiz
•
10th Grade
100 questions
PERBAIKAN NILAI INFORMATIKA

Quiz
•
10th Grade
99 questions
Computer Network Basics

Quiz
•
10th Grade
100 questions
ulangan harian pemrograman dasar 1

Quiz
•
10th Grade
97 questions
tin ck2

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade