If p is false q is true m is 10 and n is 2 what is the value

If p is false, q is true, m is 10 and n is -2, what is the value of each of the following expressions:

a. not p and q or m > n

b. m != n or not p and q

c. not (not p and q) or not (m < n)

d. not (m < n and m != 0) or not q

Solution

a. not p and q or m > n

Answer: True

true and true or 10 > -2 will return true

b. m != n or not p and q

Answer: True

10 != -2 or true and true will return true

c. not (not p and q) or not (m < n)

Answer: False

not(true and true) or not(10>-2) = not(true) or not(true) = false or false will return false

d. not (m < n and m != 0) or not q

Answer: True

not(10<-2 and 10!=0) or not(true) = not(false and true) or false = not(false) or false = true or false will return true

If p is false, q is true, m is 10 and n is -2, what is the value of each of the following expressions: a. not p and q or m > n b. m != n or not p and q c. no

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site