Computer Science Logic Table

AND Table:
In the case of AND operation, the result is TRUE if and only if both left and right operands are true. For all other cases the result is FALSE. The following table shows the result of AND operation on left and right operands.
Boolean 1
Boolean 2
Result
True
True
True
True
False
False
False
True
False
False
False
False
OR Table:
In the case of OR operation, the result is TRUE if either of left or right operand or both left and right operand is TRUE. The result is FALSE if both the left and right operand is FALSE. The following table shows the result of OR operation on left and right operands.

Boolean 1
Boolean 2
Result
True
True
True
True
False
True
False
True
True
False
False
False
XOR Table:
In the case of XOR operation, the result is TRUE if either left or right operand is TRUE but not both. The result is FALSE if both left and right operand is either TRUE or FALSE. The following table shows the result of XOR operation on left and right operands.
Boolean 1
Boolean 2
Result
True
True
False
True
False
True
False
True
True
False
False
False

Share this page:

Report Error in Content