Logic circuits

What is the binary number 1011 in decimal?

  1. A11
  2. B9
  3. C13
Show answer and explanation

Answer: A. 11

Binary digits carry weights 1, 2, 4, 8 from the right, so 1011 = 8×1 + 4×0 + 2×1 + 1×1 = 11. To convert decimal to binary, collect remainders of repeated division by 2 from the lowest bit up, or subtract the largest weights in turn. Each group of four bits maps to one hex digit (1011 = B), which shortens long bit strings. A least-significant bit of 1 also shows at a glance that the number is odd.