MCQs City stays free thanks to ads. Please turn off your ad blocker for this site so content and features keep working.
Network Security Interview
Experienced
Q
Convert the following binary notation to dotted-decimal notation – 10000001 00001011 00001011 11101111
AA. 129.11.11.239
BB. 128.11.12.231
CC. 127.11.13.244
DD. 129.12.1.231
Correct Answer:
A. A. 129.11.11.239
Explanation:
Converting the binary value to their respective decimal values yields 129.11.11.239.
Step-by-Step ConversionFor each octet, we multiply each bit by $2^n$ where $n$ is its position (from 7 down to 0).First Octet: 10000001$1 times 2^7 = 128$$0 times 2^6 = 0$$0 times 2^5 = 0$$0 times 2^4 = 0$$0 times 2^3 = 0$$0 times 2^2 = 0$$0 times 2^1 = 0$$1 times 2^0 = 1$Total: $128 + 1 = mathbf{129}$Second Octet: 00001011$0 times 128 = 0$$0 times 64 = 0$$0 times 32 = 0$$0 times 16 = 0$$1 times 8 = 8$$0 times 4 = 0$$1 times 2 = 2$$1 times 1 = 1$Total: $8 + 2 + 1 = mathbf{11}$Third Octet: 00001011This is identical to the second octet.Total: 11Fourth Octet: 11101111$1 times 128 = 128$$1 times 64 = 64$$1 times 32 = 32$$0 times 16 = 0$$1 times 8 = 8$$1 times 4 = 4$$1 times 2 = 2$$1 times 1 = 1$Total: $128 + 64 + 32 + 8 + 4 + 2 + 1 = mathbf{239}$Final ResultBy combining the four decimal values with periods, we get:Dotted-Decimal Notation: 129.11.11.239