Networking - TCP/IP - Discussion

Discussion Forum : TCP/IP - TCP/IP (Q.No. 11)
11.
Which of the following is the decimal and hexadecimal equivalents of the binary number 10011101?
155, 0x9B
157, 0x9D
159, 0x9F
185, 0xB9
Answer: Option
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.

Discussion:
2 comments Page 1 of 1.

Sad said:   9 years ago
The correct answer is 159, answer C.

Arjun said:   7 years ago
We divide up in 4 the binary form and find each value of the divisions.

Here the divisions will be 1001 and 1101 the first one gives us 9 and the second one gives 13 which is equal to D in hex.

Post your comments here:

Your comments will be displayed after verification.