The expression (9 ≠ 7 AND 17 < 4) OR 65 < 9 can be evaluated as:
(9 ≠ 7 AND 17 < 4) = (true AND false) = false
(9 ≠ 7 AND 17 < 4) OR 65 < 9 = false OR 65 < 9 = false OR false = false
Therefore, the expression would evaluate to false.
The AP Exam uses the following relational (comparison) operators: =, ≠, >, <, ≥, and ≤.
As well, AND, OR and NOT are used instead of &&, || and !=.
A comparison using a relational operator evaluates to a Boolean value. For example, a = b evaluates to true if a and b are equal; otherwise, it evaluates to false.
Determine what the following expression would evaluate to.
(9 ≠ 7 AND 17 < 4) OR 65 < 9
yes
true
false
no
1 answer