Activity : Logical operators
x and y are two integers.
A
is the statement '
x is less than 50
'
B
is the statement '
y is greater than 20
'
Decide if each of the following
statements
are
True
or
False
for the given values of x and y.
x
y
Statement
10
40
NOT B
True
False
30
30
A OR B
True
False
30
30
A XOR B
True
False
40
10
A AND B
True
False
40
60
NOT (A XOR B)
True
False
WELL DONE!!
Back