Understanding Booleans in Python

Understanding Booleans in Python

Assessment

Interactive Video

Computers

9th - 10th Grade

Hard

Created by

Jennifer Brown

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the two possible values of a boolean in Python?

1 and 0

On and Off

Yes and No

True and False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression 'a == b' if a is 3 and b is 5?

Error

False

True

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following values is considered False when converted to a boolean in Python?

Any non-zero number

1

0

Any non-empty string

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the integer value of the boolean 'True' when converted?

None

2

1

0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you multiply a boolean 'False' by 10, what is the result?

10

0

False

Error