Networking - Internetworking - Discussion

Discussion Forum : Internetworking - Internetworking (Q.No. 6)
6.
What are the decimal and hexadecimal equivalents for the binary number 10110111?
69/0x2102
183/B7
173/A6
83/0xC5
Answer: Option
Explanation:
You must be able to take a binary number and convert it into both decimal and hexadecimal. To convert to decimal, just add up the 1s using their values. The values that are turned on with the binary number of 10110111 are 128 + 32 + 16 + 4 + 2 + 1 = 183. To get the hexadecimal equivalent, you need to break the eight binary digits into nibbles (4 bits), 1011 and 0111. By add- ing up these values, you get 11 and 7. In hexadecimal, 11 is B, so the answer is 0xB7.
Discussion:
2 comments Page 1 of 1.

Atheeba Feroz M said:   2 weeks ago
To convert Binary into Decimal, assign 2 pow(n) to each of the binary digits starting from the last:

2 pow(0) -> 1 = 1*1 = 1
2 pow(1) -> 1 = 2*1 = 2
2 pow(2) -> 1 = 4*1 = 4
2 pow(3) -> 0 = 8*0 = 0
2 pow(4) -> 1 = 16*1 = 16
2 pow(5) -> 1 = 32*1 = 32
2 pow(6) -> 0 = 64*0 = 0
2 pow(7) -> 1 = 128*1 = 128

Now add all these: 1 + 2 + 4 + 0 + 16 + 32 + 0 + 128 = 183.
Then, to convert into Hexadecimal: Break the binary numbers into two sets: 1011 and 0111. You can use the same binary to decimal conversion method to find the decimal number and then convert it into Hexadecimal uses digits 0–9 and letters A–F.

Hansco said:   3 years ago
I am not getting this, please explain in detail.

Post your comments here:

Your comments will be displayed after verification.