Difficulty: Easy
Correct Answer: 128.10.2.30
Explanation:
Introduction / Context:
IPv4 addresses are commonly written in dotted-decimal notation, but under the hood they are 32-bit binary values split into four octets. Network engineers and students must be fluent in converting between binary and dotted-decimal formats for subnetting, routing, and troubleshooting.
Given Data / Assumptions:
Concept / Approach:
Break the 32-bit binary string into four octets. Convert each octet from base 2 to base 10 using positional weights (128, 64, 32, 16, 8, 4, 2, 1). Concatenate the four decimal values using dots between them to form dotted-decimal notation.
Step-by-Step Solution:
Verification / Alternative check:
Use a calculator or quick mental conversion: the presence of a single leading 1 in the first octet confirms 128; the second octet has bits at 8 and 2 positions; the third only at 2; the fourth at 16, 8, 4, and 2. Everything matches the final value 128.10.2.30.
Why Other Options Are Wrong:
Common Pitfalls:
Misgrouping bits into octets, treating binary as a single big-endian integer without splitting, or miscalculating weights (for example, forgetting that the leftmost bit is 128 in an octet). Practice with common patterns improves speed and accuracy.
Final Answer:
128.10.2.30
Discussion & Comments