Exercise
The following table shows the value of an expression based on the values of a, b, and c.
Value of a |
Value of b |
Value of c |
Value of expression |
|---|---|---|---|
true |
true |
true |
false |
true |
true |
false |
false |
true |
false |
true |
false |
true |
false |
false |
false |
false |
true |
true |
false |
false |
true |
false |
false |
false |
false |
true |
false |
false |
false |
false |
true |
Which of the following expressions are equivalent to the value of the expression shown in the table?
Select TWO answers.
(A) !a && !b && !c
(B) !(a || b || c)
(C) !a || !b || c
(D) !(a && b && c)
Solution
(A) !a && !b && !c
(B) !(a || b || c)
The expression is true if and only if a, b, and c are all false.
!a && !b && !c
This is one of the answer choices.
Factor the !.
!(a || b || c)
This is the other correct answer choice.