Search Header Logo

Quiz 2: Conditionals (CodeHS)

Authored by Bryan Campbell

Computers

11th Grade

Used 6+ times

Quiz 2: Conditionals  (CodeHS)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The __ keyword in Python is used for identity comparison. It checks if two variables refer to the same object in memory. In other words, it checks if the memory address of both variables is the same.

is

in

if

as

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will print to the console for the following code?

True

False

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will print to the console for the following code?

True

False

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will print to the console for the following code?

True

False

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will print to the console for the following code?

True

False

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In Python, the __ keyword is primarily used for membership testing. It checks whether a specified value exists within a sequence (such as a string, list, tuple, or dictionary).

is

in

if

as

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will print to the console for the following code?

True

False

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?