wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

the truth table - boolean logic (python - lpthw)

Total questions: 20

Worksheet time: 15mins

Name
Class
Date
1.

True and True

a)

true

b)

false

2.

False and True

a)

true

b)

false

3.

1 == 1 and 2 == 1

a)

true

b)

false

4.

"test" == "test"

a)

true

b)

false

5.

1 == 1 or 2 != 1

a)

true

b)

false

6.

True and 1 == 1

a)

true

b)

false

7.

False and 0 != 0

a)

true

b)

false

8.

True or 1 == 1

a)

true

b)

false

9.

"test" == "testing"

a)

true

b)

false

10.

1 != 0 and 2 == 1

a)

true

b)

false

11.

"test" != "testing"

a)

true

b)

false

12.

"test" == 1

a)

true

b)

false

13.

not (True and False)

a)

true

b)

false

14.

not (1 == 1 and 0 != 1)

a)

true

b)

false

15.

not (10 == 1 or 1000 == 1000)

a)

true

b)

false

16.

not (1 != 10 or 3 == 4)

a)

true

b)

false

17.

not ("testing" == "testing" and "Zed" == "Cool Guy")

a)

true

b)

false

18.

1 == 1 and (not ("testing" == 1 or 1 == 0))

a)

true

b)

false

19.

"chunky" == "bacon" and (not (3 == 4 or 3 == 3))

a)

true

b)

false

20.

3 == 3 and (not ("testing" == "testing" or "Python" == "Fun"))

a)

true

b)

false