Difficulty: Easy
Correct Answer: 00010110
Explanation:
Introduction / Context:In packed BCD, each decimal digit is encoded using 4 bits (a nibble). Two digits therefore occupy one byte. This format is common in calculators, financial processors, and display drivers where exact decimal digits are required.
Given Data / Assumptions:
Concept / Approach:Encode 1 as 0001 and 6 as 0110. Place 0001 in the high nibble (tens place) and 0110 in the low nibble (ones place). Concatenate to form one byte.
Step-by-Step Solution:
1) Tens digit 1 → 0001.2) Ones digit 6 → 0110.3) Byte = 0001 0110 → 00010110.4) Confirm both nibbles are valid BCD (≤1001).Verification / Alternative check:Interpret 00010110 as BCD: high nibble 0001 = 1, low nibble 0110 = 6 → 16 decimal, confirming the encoding.
Why Other Options Are Wrong:
Common Pitfalls:Confusing pure binary for BCD or swapping nibbles (placing ones in the high nibble).
Final Answer:00010110
Discussion & Comments