Multiple Boolean Logical Operators Output - Java Quiz Question


What will be the output of the following program?


A
a | b = true
a & b = true
a ^ b = true
a ^ !b = false
!a && b = false
!a || !b = false
B
a | b = true
a & b = true
a ^ b = true
a ^ !b = false
!a && b = true
!a || !b = true
C
a | b = true
a & b = false
a ^ b = false
a ^ !b = true
!a && b = false
!a || !b = true
D
a | b = true
a & b = false
a ^ b = true
a ^ !b = false
!a && b = false
!a || !b = true