Equivalent Boolean Expressions (De Morgan's Laws)

AP Computer Science A· difficulty 4/5

<code>!(a && b)</code> is equivalent to

  • A

    !a && !b

  • B

    !a || !b

    check_circle
  • C

    a && b

  • D

    a || b

Explanation

De Morgan: not (A and B) = (not A) or (not B).

Want 10 more like this — adaptive to your weak spots?

Related questions