Learn AP Comp Sci

Problem of the Day

Problem:

The binary number 101011 is equivalent to the decimal number:

  1. 43
  2. 13
  3. 39
  4. 4

Show solution:

The correct answer is a.

Going in order from right to left, the 0s and 1s indicate the 1s, 2s, 4s, 8s, 16s, 32s, 64s, and 128s positions. Here, the 1s include a 1, a 2, an 8, and a 32. Those values added together indicate the decimal number 43.