Difficulty: Easy
Correct Answer: Correct
Explanation:
Introduction / Context:Understanding positional weights is foundational in number systems. The conversion from binary to decimal hinges on the idea that each bit represents a power of 2, and that the decimal value is the sum of the weights for bits set to 1. This question validates mastery of that principle.
Given Data / Assumptions:
Concept / Approach:For any binary string b_n ... b_2 b_1 b_0, the decimal value is Σ(b_k * 2^k). When b_k = 1, that power of 2 adds to the total; when b_k = 0, it contributes nothing. This direct sum is the standard, exact method for conversion.
Step-by-Step Solution:
Label bit positions with powers: 2^0, 2^1, 2^2, ...Identify which positions are set to 1.Add corresponding powers of 2 to form the decimal value.Verify result by alternative methods if desired (e.g., Horner’s rule).Verification / Alternative check:Example: 101101₂ = 12^5 + 02^4 + 12^3 + 12^2 + 02^1 + 12^0 = 32 + 8 + 4 + 1 = 45. This matches the decimal interpretation, confirming the rule.
Why Other Options Are Wrong:
Common Pitfalls:Mislabeling bit positions (starting at 1 instead of 0), forgetting to include a weight, or confusing endianness (byte order) with numeric value; endianness is a storage layout issue, not a mathematical one.
Final Answer:Correct
Discussion & Comments