Exercise

The following table shows the value of an expression based on the values of a and b.

Value of a Value of b Value of expression
true true false
true false true
false true false
false false false

Which of the following expressions are equivalent to the value of the expression shown in the table?

Select TWO answers.

(A) a AND b

(B) a AND (NOT b)

(C) NOT ((NOT a) OR b)

(D) NOT (a AND b)

Solution

(B) a AND (NOT b)

(C) NOT ((NOT a) OR b)

The expression evaluates to true if and only if a is true and b is false.

a AND (NOT b)

This is one of the answer choices.

Factor a NOT from the entire expression (which is a silly thing to do here, but can be done).

NOT ((NOT a) OR b)

This is the other correct answer choice.

Exercise 1 solution
Exercise 3 solution
Exercises