Difficulty: Easy
Correct Answer: 128.10.2.30
Explanation:
Introduction / Context:
IPv4 addresses are 32-bit values typically shown in dotted-decimal notation as four octets. Converting from binary to dotted-decimal requires splitting the bit string into four 8-bit groups and converting each to base 10.
Given Data / Assumptions:
Concept / Approach:
The algorithm: (1) split the 32 bits into four octets, (2) convert each 8-bit binary number to decimal using positional weights (128, 64, 32, 16, 8, 4, 2, 1), and (3) join with dots.
Step-by-Step Solution:
Octet 1: 10000000 = 128.Octet 2: 00001010 = 8 + 2 = 10.Octet 3: 00000010 = 2.Octet 4: 00011110 = 16 + 8 + 4 + 2 = 30.Combine: 128.10.2.30.
Verification / Alternative check:
Quick mental check: a leading 1 followed by 7 zeros is 128; small set bits in the second (8 and 2), third (2), and fourth (16+8+4+2) octets corroborate 10, 2, and 30 respectively.
Why Other Options Are Wrong:
148.20.2.30, 164.100.9.61, 210.20.2.64: Do not match the binary octet conversions.
Common Pitfalls:
Mis-grouping bits (not on 8-bit boundaries) or arithmetic slips when adding powers of two. Always write out the weight positions to avoid errors.
Final Answer:
128.10.2.30
Discussion & Comments