PLTW Python Reference Quiz

PLTW Python Reference Quiz

9th - 12th Grade

24 Qs

quiz-placeholder

Similar activities

Komputer Akuntansi XI AKL

Komputer Akuntansi XI AKL

11th - 12th Grade

20 Qs

Remedial Mapel PKWU kls XI

Remedial Mapel PKWU kls XI

11th Grade

20 Qs

REVISION CHAPTER 8 & 9

REVISION CHAPTER 8 & 9

3rd Grade - University

20 Qs

Teks laporan percobaan 1

Teks laporan percobaan 1

9th Grade

20 Qs

Panimulang Pagsusulit

Panimulang Pagsusulit

11th Grade

20 Qs

ULANGAN HARIAN 1 KAS KECIL

ULANGAN HARIAN 1 KAS KECIL

12th Grade

20 Qs

Inducción SENA 2020

Inducción SENA 2020

10th - 11th Grade

20 Qs

Module 8: State and Non-state Institutions

Module 8: State and Non-state Institutions

11th Grade - University

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?