Difficulty: Easy
Correct Answer: 10010
Explanation:
Introduction / Context:Converting decimal to binary is a fundamental skill for understanding memory layouts, bitwise operations, and low-level protocols. The standard approach decomposes a number into sums of powers of two or uses repeated division by 2.
Given Data / Assumptions:
Concept / Approach:Find the largest power of two not exceeding 18, subtract it, and continue until the remainder is zero. Alternatively, perform successive dividing by 2 and record remainders from least significant to most significant bit.
Step-by-Step Solution:
Powers of two: 16, 8, 4, 2, 118 = 16 + 2 ⇒ bits for 16 and 2 are 1; others 0Binary pattern: 1 (16) 0 (8) 0 (4) 1 (2) 0 (1) ⇒ 10010Verification / Alternative check:Using division by 2: 18/2=9 r0, 9/2=4 r1, 4/2=2 r0, 2/2=1 r0, 1/2=0 r1; remainders upward give 10010. Convert back: 10010₂ = 16 + 2 = 18₁₀, confirming correctness.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:10010
Discussion & Comments