Difficulty: Easy
Correct Answer: Incorrect
Explanation:
Introduction / Context:
Hexadecimal (base 16) and Binary-Coded Decimal (BCD) both use 4-bit groups, which often leads to confusion. However, they encode different domains: hex digits represent values 0–15, while standard BCD encodes decimal digits 0–9 only. This question probes whether you can separate these encodings conceptually and practically.
Given Data / Assumptions:
Concept / Approach:
Although both use nibbles, BCD is not “encoded by hex.” BCD stores each decimal digit separately in 4 bits to preserve decimal semantics (e.g., 39 decimal → BCD 0011 1001). Hexadecimal is a base-16 numeral system; 0x27 equals decimal 39 but as a single base-16 number, not two decimal digits encoded. Treating hex and BCD as interchangeable causes value misinterpretations in registers and memory maps.
Step-by-Step Solution:
Verification / Alternative check:
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
Discussion & Comments