
PLTW Python Reference Quiz
Quiz
•
Education
•
9th - 12th Grade
•
Practice Problem
•
Hard
Edward Gates
FREE Resource
Enhance your content in a minute
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the while statement do in Python?
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.
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
20 questions
QUIZ MILAD KE 20 FI
Quiz
•
KG - Professional Dev...
20 questions
KEPASKIBRAAN
Quiz
•
10th Grade
20 questions
Module 6: Social Groups and Organization
Quiz
•
11th Grade - Professi...
20 questions
IDEA PRINCIPAL E INFERENCIA DE SIGNIFICADOS
Quiz
•
12th Grade
20 questions
PKWU Evaluasi Usaha
Quiz
•
11th Grade
20 questions
[EOE1-2P-2]Fichas de Trabajo
Quiz
•
1st Grade - University
20 questions
Ul. Harian Tema 8 Matematika Kelas 3
Quiz
•
8th - 9th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
