Study

Boolean Expressions

  •   0%
  •  0     0     0

  • Define the term "boolean variable."
    A variable whose data type is Boolean, meaning it can only store a True or False value.
  • Are these two expressions logically equivalent:
    No
  • Suppose A is False and B is False. Evaluate ((not(A)) and (not(B)))
    True
  • Suppose A = True and B = False. Evaluate A and B.
    False
  • Suppose A = True and B = False. Evaluate A or B.
    True
  • True or False? All relational operators return a Boolean result.
    True
  • Suppose A is True and B is False. Evaluate ((not(A)) or B)
    False
  • Suppose A is False and B is False. Evaluate ((not(A)) or (not(B)))
    True
  • Are these two expressions logically equivalent?
    Yes