Multiple choice

Directions: Use the following expression. (Height > 20) AND (Tree$ = "Hickory") OR NOT (Tree$ = "Oak")

For which of the following values will the above expression evaluate as false?

  1. Tree$ = "PINE"; Height = 20
  2. Tree$ = "HICKORY"; Height = 21
  3. Tree$ = "OAK"; Height = 19
  4. Tree$ = "WALNUT"; Height = 21
Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

For Oak (Height 19): (19 > 20) is false AND("Hickory") is false. First part: false AND false = false. NOT("OAK"="Oak") = NOT(true) = false. Final: false OR false = false. All other combinations evaluate to true.