Multiple choice technology programming languages

Evaluate !(1&&1||1&&0)

  1. Error

  2. True

  3. False

  4. Can't Say

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In boolean logic, the && operator has higher precedence than ||. Thus, 1&&1 evaluates to 1, and 1&&0 evaluates to 0. The expression simplifies to !(1 || 0), which is !(1), resulting in 0 (False).