Question 1061
a, b, and c are boolean variables.
!(a && (b || !c))
Which of the following is logically equivalent to the expression above?Main Solution
Answer
Answer: C. Apply De Morgan's law twice. !(a && X) becomes !a || !X, where X = (b || !c). Then !(b || !c) becomes !b && !!c = !b && c. So the equivalent is !a || (!b && c). Option A applies De Morgan to (b || !c) incorrectly (using || instead of &&); option B incorrectly turns the outer || into &&; option D is just !a && the original inner expression, which is wrong on both sides.
Answer: Correct: C
A
!a || (!b || c)
B
!a && (!b || c)
C
!a || (!b && c)
D
!a && (b || !c)
Answer images

