Difficulty: Easy
Correct Answer: 206
Explanation:
Introduction / Context:
Converting an 8-bit binary pattern to decimal requires summing the place values (powers of two) where the bits are 1. This is foundational for interpreting register dumps, opcodes, and pixel values.
Given Data / Assumptions:
Concept / Approach:
For b7 b6 b5 b4 b3 b2 b1 b0 = 11001110, compute sum(bi * 2^i). Only positions with bi = 1 contribute to the sum: 2^7, 2^6, 2^3, 2^2, 2^1.
Step-by-Step Solution:
Verification / Alternative check:
Group into nibbles: 1100 1110 → 0xCE. Hex CE equals 12*16 + 14 = 192 + 14 = 206, confirming the result.
Why Other Options Are Wrong:
Common Pitfalls:
Miscounting powers of two or forgetting to include the 8 and 4 positions in the sum.
Final Answer:
206
Discussion & Comments