PLTW Python Reference Quiz

PLTW Python Reference Quiz

9th - 12th Grade

24 Qs

quiz-placeholder

Similar activities

Beginners_Assessment

Beginners_Assessment

5th - 9th Grade

25 Qs

Kod Arahan F2

Kod Arahan F2

9th - 12th Grade

20 Qs

Midterm 12C SU

Midterm 12C SU

12th Grade

19 Qs

PTS X SNT - ANALISIS DATA MENGGUNAKAN PYTHON #01

PTS X SNT - ANALISIS DATA MENGGUNAKAN PYTHON #01

10th Grade

25 Qs

BJC AP CSP Unit 3 Exam Review

BJC AP CSP Unit 3 Exam Review

9th - 12th Grade

27 Qs

Grand Quiz (Python)

Grand Quiz (Python)

6th - 12th Grade

20 Qs

Cronómetro em Microbit

Cronómetro em Microbit

5th - 9th Grade

20 Qs

rare species of Nepal

rare species of Nepal

10th Grade

20 Qs

PLTW Python Reference Quiz

PLTW Python Reference Quiz

Assessment

Quiz

Education

9th - 12th Grade

Hard

Created by

Edward Gates

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?