Google News
logo
Networking - Quiz(MCQ)
Which of the following is the decimal and hexadecimal equivalents of the binary number 10011101?
A)
159, 0x9F
B)
185, 0xB9
C)
157, 0x9D
D)
155, 0x9B

Correct Answer :   157, 0x9D


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.

Advertisement