What does the while
statement do in Python?

PLTW Python Reference Quiz

Quiz
•
Education
•
9th - 12th Grade
•
Hard
Edward Gates
FREE Resource
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It identifies a section of code to repeat while the condition evaluates to true.
It identifies a section of code to execute only once.
It identifies a section of code to execute when an error occurs.
It identifies a section of code to execute when a condition is false.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the `if/else` statement in Python, what happens when the condition evaluates to True?
The code below the `else` executes.
The code below the `if` executes.
The code below both `if` and `else` executes.
The code does not execute.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, what does the comparison operator a < b
evaluate to?
True if a
is greater than b
.
True if a
is less than b
.
True if a
is equal to b
.
True if a
is not equal to b
.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which comparison operator in Python evaluates to true if a
is greater than or equal to b
?
a < b
a > b
a <= b
a >= b
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, what does the comparison operator a == b
evaluate to?
True if a is greater than b.
True if a is less than b.
True if a is equal to b.
True if a is not equal to b.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the while not
statement do in Python?
It repeats until the condition evaluates to true.
It repeats until the condition evaluates to false.
It repeats indefinitely.
It does not repeat at all.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the '#' symbol do in Python code?
To help readers understand the code.
To execute a part of the code.
To create a loop.
To define a function.
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Python - Buổi 2

Quiz
•
12th Grade - Professi...
20 questions
Tugas FO, HK, FB Department

Quiz
•
12th Grade - University
25 questions
Bilgisayar Bilimi

Quiz
•
9th - 11th Grade
20 questions
Vocabulary

Quiz
•
9th Grade
20 questions
Programming Knowledge Quiz (Easy)

Quiz
•
5th Grade - Professio...
21 questions
English for Communication (Final) 40p

Quiz
•
12th Grade
19 questions
Functions - Programming 1 Fawaz

Quiz
•
10th Grade
25 questions
SUSULAN_PAS_GENAP_INFORMATIKA_X

Quiz
•
10th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Education
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade