
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
100 questions
SCRATCH 3.0 Semester Exam 2 Review

Quiz
•
9th - 12th Grade
100 questions
Ulangkaji SK 2018

Quiz
•
10th - 12th Grade
98 questions
OCR GCSE Computer Science Revision Paper 1- Saim C :D

Quiz
•
8th - 12th Grade
100 questions
GCSE Computer Science Megaquiz

Quiz
•
10th - 11th Grade
100 questions
TLE - ICT 10 - REVIEWER

Quiz
•
10th Grade
99 questions
N5 Database Development Set C

Quiz
•
10th Grade
97 questions
SQL: GROUP Functions

Quiz
•
8th Grade - Professio...
100 questions
GCSE Computer Science Keywords

Quiz
•
10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade