What is the binary number for decimal number 9?

2020

What is the binary number for decimal number 9?

Answer: B. 1001Concept — In a base-2 (binary) positional system each digit position carries a weight that is a power of 2. Reading a numeral from right to left the weights…

  1. A.

    1100

  2. B.

    1001

  3. C.

    0111

  4. D.

    1011

Attempted by 489 students.

Show answer & explanation

Correct answer: B

Concept — In a base-2 (binary) positional system each digit position carries a weight that is a power of 2. Reading a numeral from right to left the weights are 20, 21, 22, 23, … , and the value of the numeral is the sum of the weights whose digit is 1. Converting a decimal number to binary therefore means writing it as a sum of distinct powers of 2; the mechanical way to find those powers is to divide repeatedly by 2 and read the remainders from the last division backwards.

Application — Divide 9 by 2 repeatedly and record every remainder:

  1. 9 ÷ 2 = 4, remainder 1 — this remainder is the least-significant bit.

  2. 4 ÷ 2 = 2, remainder 0.

  3. 2 ÷ 2 = 1, remainder 0.

  4. 1 ÷ 2 = 0, remainder 1 — this remainder is the most-significant bit.

Reading the remainders from the last division back to the first gives 10012. The sum-of-powers view gives the same thing: 9 = 8 + 1 = 23 + 20, so the bits at the weights 8 and 1 are set and the bits at the weights 4 and 2 are clear.

Place value

8 (23)

4 (22)

2 (21)

1 (20)

Bit

1

0

0

1

Cross-check — Expand the result back: 1×8 + 0×4 + 0×2 + 1×1 = 9, the number we started from. Comparing the neighbouring 4-bit patterns shows how each differs:

  • 11002 sets the weights 8 and 4, giving 1210.

  • 01112 sets the weights 4, 2 and 1, giving 710.

  • 10112 sets the weights 8, 2 and 1, giving 1110.

Explore the full course: Nta Ugc Net Paper 1

Loading lesson…