To convert the decimal number 13 to binary, which of the following is correct?

Prepare for the IT GACE Computer Science Test. Use flashcards and multiple choice questions with hints and explanations. Excel in your exam preparation!

Multiple Choice

To convert the decimal number 13 to binary, which of the following is correct?

Explanation:
Express the decimal as a sum of powers of two. The relevant powers here are 8, 4, 2, and 1. To get 13, include 8 and 4 (8 + 4 = 12) and also include 1 to reach 13, skipping 2. This forms the bit pattern 1 1 0 1, which is 1101 in binary. In decimal terms, 1101 equals 8 + 4 + 0 + 1 = 13. The other patterns correspond to different sums: 1011 is 8 + 2 + 1 = 11, 1110 is 8 + 4 + 2 = 14, and 1001 is 8 + 1 = 9.

Express the decimal as a sum of powers of two. The relevant powers here are 8, 4, 2, and 1. To get 13, include 8 and 4 (8 + 4 = 12) and also include 1 to reach 13, skipping 2. This forms the bit pattern 1 1 0 1, which is 1101 in binary. In decimal terms, 1101 equals 8 + 4 + 0 + 1 = 13. The other patterns correspond to different sums: 1011 is 8 + 2 + 1 = 11, 1110 is 8 + 4 + 2 = 14, and 1001 is 8 + 1 = 9.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy