Boolean Expressions


Questions

Conceptual

  1. What are the results of the following boolean expressions?

1.1 ((not False) and True) == True

1.2 (not False) or (True and False)

1.3 True and (7 < 3 * 4 / 6)

1.4 (not False) != True

1.5 not (True and False) and (False or not False)

1.6. "XYz" == "XYZ" or "B" == "C"

1.7. 5 ** 2 >= 5 * 5 and 110 % 10 == 0

SHOW SOLUTIONS

1.1. True

1.2. True

1.3. False

1.4. False

1.5. True

1.6. False

1.7. True

 

Contributor(s): Alyssa Lytle, Megan Zhang, David Karash