Logic circuits
Which is the decimal number 13 in binary?
- A1011
- B1101
- C1110
Show answer and explanation
Answer: B. 1101
13 = 8 + 4 + 1, so the 8s, 4s and 1s places are 1, giving 1101. Repeated division gives the same result: 13 ÷ 2 = 6 r1,r0, 3 ÷ 2 = 1 r1, 1 ÷ 2 = 0 r1, reading the remainders from the last to the first. In hex, 1101 = D. Memorizing powers of two (1, 2, 4, 8, 16, 32…) speeds up conversions.
- A. 1011 is 8 + 2 + 1 = 11.
- B. Correct. 8 + 4 + 1 = 13.
- C. 1110 is 8 + 4 + 2 = 14.