Multiple choice

In the following expression, AND and OR are arithmetic operators (42 OR 72) AND 55.

The value of this expression is

  1. 15

  2. 85

  3. 34

  4. 59

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In this expression, AND and OR are bitwise operators. 42 in binary is 00101010, 72 is 01001000, 55 is 00110111. (42 OR 72) = 01101010 = 106. Then 106 AND 55 = 00100010 = 34. The result is 34.