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
30 30 A OR B
30 30 A XOR B
40 10 A AND B
40 60 NOT (A XOR B)

   Back