PLTW Python Reference Quiz

PLTW Python Reference Quiz

9th - 12th Grade

24 Qs

quiz-placeholder

Similar activities

PJPK TINGKATAN 3 :PERMAINAN PINGPONG

PJPK TINGKATAN 3 :PERMAINAN PINGPONG

9th Grade

20 Qs

17an DARBI

17an DARBI

7th - 9th Grade

20 Qs

LO EDB

LO EDB

9th - 12th Grade

20 Qs

Tích cực đa diện

Tích cực đa diện

12th Grade

20 Qs

ULANGAN HARIAN FARMAKOLOGI XII

ULANGAN HARIAN FARMAKOLOGI XII

12th Grade

20 Qs

edat bağlaç ünlem

edat bağlaç ünlem

9th Grade

20 Qs

LATIHAN SOAL "PPKN"

LATIHAN SOAL "PPKN"

10th Grade

20 Qs

3°COM: ORACIÓN COMPUESTA II

3°COM: ORACIÓN COMPUESTA II

10th Grade

20 Qs

PLTW Python Reference Quiz

PLTW Python Reference Quiz

Assessment

Quiz

Education

9th - 12th Grade

Practice Problem

Hard

Created by

Edward Gates

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?