Difficulty: Easy
Correct Answer: 00100011
Explanation:
Introduction / Context:
Expressing small decimal integers in a fixed 8-bit binary format is routine when initializing registers, masks, and configuration values. Leading zeros are preserved to keep the full 8-bit width, which is important for clarity and alignment in low-level work.
Given Data / Assumptions:
Concept / Approach:
Decompose 35 into powers of two. 35 = 32 + 2 + 1 = 2^5 + 2^1 + 2^0. Set bits at those positions and clear the rest. Finally, pad with leading zeros to form 8 bits.
Step-by-Step Solution:
Verification / Alternative check:
Convert back: 00100011₂ = 32 + 2 + 1 = 35 decimal, confirming correctness.
Why Other Options Are Wrong:
Common Pitfalls:
Dropping leading zeros or misplacing the 2^1 and 2^0 bits when forming the lower three bits.
Final Answer:
00100011
Discussion & Comments