Equivalent Boolean Expressions (De Morgan's Laws)

AP Computer Science A· difficulty 4/5

"If a then b" can be written as

  • A

    a || b

  • B

    a && b

  • C

    !(a || b)

  • D

    !a || b

    check_circle

Explanation

<code>a → b</code> is logically equivalent to <code>(NOT a) OR b</code>.

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

Related questions