Boolean

Boolean

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz 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

8.

FLASHCARD QUESTION

Front

Which of these statements is correct about Booleans in Python?
Boolean values are case-insensitive,
True and False must start with a capital letter,
Booleans cannot be used in conditional statements,
Booleans are the same as strings

Back

True and False must start with a capital letter