Logical Operators Worksheet
If x = -2, y = 5, z = 0 , and t = -4, what is the value of each of
the following logical expressions?
- x + y < z + 1
- x - 2 * y + y < z * 2 / 3
- 3 * y / 4 < 8 && y >= 4
- t > 5 || z < 2
- x * y < 10 || y * z < 10
- (y + 2) / 3 > 3 && t < 0
- x * 3 > 0 || y + 5 / t < 2
- !(x > 0)
- !(x * t < 10) || y / x * 4 < y * 2
- t > 5 || z < (y + 5) && y < 3
- !(4 + 5 * y >= z - 4) && (z - 2 < 7)
Write sytactically correct logical expressions for the
following conditions:
- m is less than 100
- n is positive and greater than m
- m is between 5 and 10 (inclusive)
- k is less than 1 or greater than 2
- j and k are both negative
- i is an even number
Email Me |
Office Hours |
My Home Page |
Department Home |
MCC Home Page
© Copyright Emmi Schatz 2013