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:
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