Difficulty: Easy
Correct Answer: 1911
Explanation:
Introduction:Converting between hexadecimal and decimal is a routine task in digital electronics, debugging, and low-level programming. Understanding positional weights (powers of 16) allows quick mental or written conversion for any hex string, including repeating digits like 777.
Given Data / Assumptions:
Concept / Approach:
Use positional expansion: value = d2 * 16^2 + d1 * 16^1 + d0 * 16^0. Each “7” contributes 7 times its place weight. Sum the contributions to obtain the decimal result.
Step-by-Step Solution:
Compute 16^2 = 256 and 16^1 = 16; 16^0 = 1.Multiply: 7 * 256 = 1792; 7 * 16 = 112; 7 * 1 = 7.Add: 1792 + 112 + 7 = 1911.Therefore, hex 777 equals decimal 1911.Verification / Alternative check:
As a quick check, note that 0x3FF (1023) is 10 bits set; 0x777 is smaller but in the same ballpark. Exact arithmetic confirms 1911.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
1911
Discussion & Comments