Question: Assume that the following variables contain the values shown: NumberBig = 300 NumberMedium = 100 NumberSmall = 5 WordBig = Elephant WordMedium = Horse wordSmall

Assume that the following variables contain the values shown:

NumberBig = 300 

NumberMedium = 100 

NumberSmall = 5

WordBig = "Elephant" 

WordMedium = "Horse" 

wordSmall = "bug”

For each of the following Boolean expressions, decide whether the statement is true, false, or illegal.


a. NumberBig = numberSmall
b. NumberBig > numberSmall
c. NumberMedium < numberSmall
d. NumberBig = wordBig
e. NumberBig = "Big"
f. WordMedium = "Medium"
g. WordBig = "Elephant"
h. NumberMedium <= numberBig / 3
i. NumberBig >= 200
j. NumberBig >= numberMedium + numberSmall
k. NumberBig > numberMedium AND numberBig < numberSmall
l. NumberBig = 100 OR numberBig > numberSmall
m. NumberBig < 10 OR numberSmall > 10
n. NumberBig = 30 AND numberMedium = 100 OR numberSmall = 100

Step by Step Solution

3.33 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Logic & Design Comprehensive Questions!