F5: Logical operators


A) “AND” Operators
VALUE
TRUTH VALUE
X
Y
X AND Y
0
0
0
0
1
0
1
0
0
1
1
1
 
1 = TRUE, 0 = FALSE 
 
B) “OR” Operators
 
VALUE
TRUTH VALUE
X
Y
X OR Y
0
0
0
0
1
1
1
0
1
1
1
1
  1 = TRUE, 0 = FALSE 

C) “NOT” operator
VALUE
TRUTH VALUE
X
NOT X
0
1
1
0
 

No comments:

Post a Comment