Boolean

Boolean

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

8 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is a Boolean in Python?

Back

A value that can be either True or False

2.

FLASHCARD QUESTION

Front

Which of the following is a valid Boolean declaration in Python? status = "True", status = True, status = 1, status = "False"

Back

status = True

3.

FLASHCARD QUESTION

Front

What is the type of the variable 'brought_food' after the assignment brought_food = True?

Back

4.

FLASHCARD QUESTION

Front

Which of the following is NOT a valid boolean value in Python? `True`, `False`, `0`, `None`

Back

`None`

5.

FLASHCARD QUESTION

Front

Back

6.

FLASHCARD QUESTION

Front

Choose the correct data type for `False` in Python.

Back

Boolean

7.

FLASHCARD QUESTION

Front

True or False: Booleans in Python must start with a lowercase t or f.

Back

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?