Difficulty: Medium
Correct Answer: 11010000101000
Explanation:
Introduction:Binary-coded decimal (BCD) encodes each decimal digit individually into a 4-bit binary nibble. Reading and writing BCD correctly is essential when interfacing with displays, keypads, and financial computations where exact decimal representation is preferred over pure binary.
Given Data / Assumptions:
Concept / Approach:
Encode each digit independently: 3 → 0011, 4 → 0100, 2 → 0010, 8 → 1000. Concatenate the nibbles without separators to obtain the final BCD bitstring. Leading zeros in the leftmost nibble may be omitted when options show shortened strings; the logical value is unchanged.
Step-by-Step Solution:
Write digit codes: 3 = 0011; 4 = 0100; 2 = 0010; 8 = 1000.Concatenate: 0011 0100 0010 1000.Remove spaces: 0011010000101000.If leading zeros are dropped, this becomes 11010000101000, which matches the offered option.Verification / Alternative check:
Decode the selected string in 4-bit groups: 0011 (3), 0100 (4), 0010 (2), 1000 (8) → confirms 3428.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
11010000101000
Discussion & Comments