Are the following Boolean expressions true or false? Assume variables x = 5 and y = 6.
!(x > 6) _________ (x==6 && x==5) _________ (x==6 || x==5) _________ (x>-1 && y<10) _________
Although the syntax is correct, what is flawed about the following Boolean expression?
(x > 10 && x < 5) ________________________________
Answers:
!(x > 6) true (x==6 && x==5) false (x==6 || x==5) true (x>-1 && y<10) true
(x > 10 && x < 5)
The above can never be true! A number can never be greater than ten AND less than five.








