1.P Q !((P||Q)&&(P&&Q))
true true False
true false True
false true True
false false False
2. Assume that A is true and B is false, Write the values of thefollowing expression:
- a. true, b. false, c. true, d. false
4. List the logical operators in the order in which each one would be evaluated at run time.
- NOT (!), AND(&&), OR(||)
5. Construct a Boolean expression that tets whether the value of variable x is within the range specified by the variables min (the smallest) and max (the largest).
- if (min<= x && x<=max)
System.out.println (”x is within the min and the max. “)