Multiple choice technology programming languages

15 & 29 = ?

  1. 12

  2. 44

  3. 14

  4. 13

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

The & operator performs bitwise AND. 15 in binary is 1111 (4 bits), 29 is 11101 (5 bits). Aligning and ANDing: 01111 & 11101 = 01101 = 13 in decimal.