Assume that the following variables contain the values shown: numberBig = 100 numberMedium = 10 numberSmall = 1 wordBig = "Constitution" wordMedium = "Dance" wordSmall = "Toy” For each of the following Boolean expressions, decide whether the statement is true, false, or illegal. a. numberBig > numberSmall b. numberBig < numberMedium c. numberMedium = numberSmall d. numberBig = wordBig e. numberBig = "Big" f. wordMedium > wordSmall g. wordSmall = "TOY" h. numberBig <= 5 * numberMedium + 50 i. numberBig >= 2000 j. numberBig > numberMedium + numberSmall k. numberBig > numberMedium AND numberBig < numberSmall l. numberBig = 100 OR numberBig > numberSmall m. numberBig < 10 OR numberSmall > 10 n. numberBig = 300 AND numberMedium = 10 OR numberSmall = 1 o. wordSmall > wordBig p. wordSmall > wordMedium
Assume that the following variables contain the values shown:
numberBig = 100
numberMedium = 10
numberSmall = 1
wordBig = "Constitution"
wordMedium = "Dance"
wordSmall = "Toy”
For each of the following Boolean expressions, decide whether the statement is true, false, or illegal.
a. numberBig > numberSmall
b. numberBig < numberMedium
c. numberMedium = numberSmall
d. numberBig = wordBig
e. numberBig = "Big"
f. wordMedium > wordSmall
g. wordSmall = "TOY"
h. numberBig <= 5 * numberMedium + 50
i. numberBig >= 2000
j. numberBig > numberMedium + numberSmall
k. numberBig > numberMedium AND numberBig < numberSmall
l. numberBig = 100 OR numberBig > numberSmall
m. numberBig < 10 OR numberSmall > 10
n. numberBig = 300 AND numberMedium = 10 OR numberSmall = 1
o. wordSmall > wordBig
p. wordSmall > wordMedium
Trending now
This is a popular solution!
Step by step
Solved in 3 steps