Thursday 9 August 2012

CCNA (TCP/IP Question 11 )


Which of the following is the decimal and hexadecimal equivalents of the binary number 10011101?

A. 155, 0x9B

B. 157, 0x9D

C. 159, 0x9F

D. 185, 0xB9



Answer & Explanation
Answer: Option B

Explanation:

To turn a binary number into decimal, you just have to add the values of each bit that is a 1. The values of 10011101 are 128, 16, 8, 4, and 1. 128 + 16 + 8 + 4 + 1 = 157.

Hexadecimal is a base-16 number system. The values of hexadecimal are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F-16 characters total, from which to create all the numbers you'll ever need. So, if 1001 in binary is 9, then the hexadecimal equivalent is 9. Since we then have 1101, which is 13 in binary, the hexadecimal answer is D and the complete hexadecimal answer is 0x9D.

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More