Chapt 4
4.1
1)value of expression
a) True 5>2=
b) True 5-=2
c) True 6%2==4%2
d) True 5*4-=6*2
e) True 6*2==4*3
f) 10=5*2
g) 4=5%2*4
h) 0=4%2*5
i) 25=2%4*5
2)
a) (5%2*4) && (4%2*5)
b) (5%2*4) || (4%2*5)
c) (2%4*5) && (5%4*2)
d) (2%4*5) || (5%4*2)
3)
a) age==30
b) temp>98.6
c) height<6’
d) month==December
e) lintput==’m’
f) age==30 &&height>6’
g) day==15 && month=1
h) age>50 || employed>=5yrs
i) id_num<500 && age>55
j) length>2’ && length<5’
4)
a) 5==5 (TRUE)
b) 2*5==4*4 (FALSE)
c) 5%2*4>5 || 4%2*5<7 = (4>5||0<7)(TRUE)