Fully solved problem book
Reading binary
Set 8 of 10 · 32 worked questions. Predict your result before expanding the solution.
These worked traces are meant to build fluency through controlled variation. If several answers feel identical, try the next difficult value and look for the point where a carry, sign, branch, or selected memory address changes the outcome.
Foundations · Problem 0225
Read 11100000₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11100000.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32.
- Add just the selected weights: 224.
- Answer: 11100000₂ = 224₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 224₁₀
Foundations · Problem 0226
Read 11100001₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11100001.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 1.
- Add just the selected weights: 225.
- Answer: 11100001₂ = 225₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 225₁₀
Foundations · Problem 0227
Read 11100010₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11100010.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 2.
- Add just the selected weights: 226.
- Answer: 11100010₂ = 226₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 226₁₀
Foundations · Problem 0228
Read 11100011₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11100011.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 2 + 1.
- Add just the selected weights: 227.
- Answer: 11100011₂ = 227₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 227₁₀
Foundations · Problem 0229
Read 11100100₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11100100.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 4.
- Add just the selected weights: 228.
- Answer: 11100100₂ = 228₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 228₁₀
Foundations · Problem 0230
Read 11100101₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11100101.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 4 + 1.
- Add just the selected weights: 229.
- Answer: 11100101₂ = 229₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 229₁₀
Foundations · Problem 0231
Read 11100110₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11100110.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 4 + 2.
- Add just the selected weights: 230.
- Answer: 11100110₂ = 230₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 230₁₀
Foundations · Problem 0232
Read 11100111₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11100111.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 4 + 2 + 1.
- Add just the selected weights: 231.
- Answer: 11100111₂ = 231₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 231₁₀
Foundations · Problem 0233
Read 11101000₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11101000.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 8.
- Add just the selected weights: 232.
- Answer: 11101000₂ = 232₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 232₁₀
Foundations · Problem 0234
Read 11101001₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11101001.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 8 + 1.
- Add just the selected weights: 233.
- Answer: 11101001₂ = 233₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 233₁₀
Foundations · Problem 0235
Read 11101010₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11101010.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 8 + 2.
- Add just the selected weights: 234.
- Answer: 11101010₂ = 234₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 234₁₀
Foundations · Problem 0236
Read 11101011₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11101011.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 8 + 2 + 1.
- Add just the selected weights: 235.
- Answer: 11101011₂ = 235₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 235₁₀
Foundations · Problem 0237
Read 11101100₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11101100.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 8 + 4.
- Add just the selected weights: 236.
- Answer: 11101100₂ = 236₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 236₁₀
Foundations · Problem 0238
Read 11101101₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11101101.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 8 + 4 + 1.
- Add just the selected weights: 237.
- Answer: 11101101₂ = 237₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 237₁₀
Foundations · Problem 0239
Read 11101110₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11101110.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 8 + 4 + 2.
- Add just the selected weights: 238.
- Answer: 11101110₂ = 238₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 238₁₀
Foundations · Problem 0240
Read 11101111₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11101111.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 0 at weight 16 contributes 0.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 8 + 4 + 2 + 1.
- Add just the selected weights: 239.
- Answer: 11101111₂ = 239₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 239₁₀
Foundations · Problem 0241
Read 11110000₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11110000.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 16.
- Add just the selected weights: 240.
- Answer: 11110000₂ = 240₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 240₁₀
Foundations · Problem 0242
Read 11110001₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11110001.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 16 + 1.
- Add just the selected weights: 241.
- Answer: 11110001₂ = 241₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 241₁₀
Foundations · Problem 0243
Read 11110010₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11110010.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 16 + 2.
- Add just the selected weights: 242.
- Answer: 11110010₂ = 242₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 242₁₀
Foundations · Problem 0244
Read 11110011₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11110011.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 16 + 2 + 1.
- Add just the selected weights: 243.
- Answer: 11110011₂ = 243₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 243₁₀
Foundations · Problem 0245
Read 11110100₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11110100.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 16 + 4.
- Add just the selected weights: 244.
- Answer: 11110100₂ = 244₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 244₁₀
Foundations · Problem 0246
Read 11110101₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11110101.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 16 + 4 + 1.
- Add just the selected weights: 245.
- Answer: 11110101₂ = 245₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 245₁₀
Foundations · Problem 0247
Read 11110110₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11110110.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 16 + 4 + 2.
- Add just the selected weights: 246.
- Answer: 11110110₂ = 246₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 246₁₀
Foundations · Problem 0248
Read 11110111₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11110111.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 0 at weight 8 contributes 0.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 16 + 4 + 2 + 1.
- Add just the selected weights: 247.
- Answer: 11110111₂ = 247₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 247₁₀
Foundations · Problem 0249
Read 11111000₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11111000.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 16 + 8.
- Add just the selected weights: 248.
- Answer: 11111000₂ = 248₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 248₁₀
Foundations · Problem 0250
Read 11111001₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11111001.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 16 + 8 + 1.
- Add just the selected weights: 249.
- Answer: 11111001₂ = 249₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 249₁₀
Foundations · Problem 0251
Read 11111010₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11111010.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 16 + 8 + 2.
- Add just the selected weights: 250.
- Answer: 11111010₂ = 250₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 250₁₀
Foundations · Problem 0252
Read 11111011₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11111011.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 0 at weight 4 contributes 0.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 16 + 8 + 2 + 1.
- Add just the selected weights: 251.
- Answer: 11111011₂ = 251₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 251₁₀
Foundations · Problem 0253
Read 11111100₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11111100.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 16 + 8 + 4.
- Add just the selected weights: 252.
- Answer: 11111100₂ = 252₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 252₁₀
Foundations · Problem 0254
Read 11111101₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11111101.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 0 at weight 2 contributes 0.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 16 + 8 + 4 + 1.
- Add just the selected weights: 253.
- Answer: 11111101₂ = 253₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 253₁₀
Foundations · Problem 0255
Read 11111110₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11111110.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 0 at weight 1 contributes 0.
- The one-bit weights are 128 + 64 + 32 + 16 + 8 + 4 + 2.
- Add just the selected weights: 254.
- Answer: 11111110₂ = 254₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 254₁₀
Foundations · Problem 0256
Read 11111111₂ as an unsigned decimal integer.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- First record that this is an unsigned 8-bit pattern: 11111111.
- The rightmost bit has weight 2⁰ = 1; every move left doubles the weight.
- The leftmost bit in this 8-bit pattern has weight 2^7 = 128.
- Column 7: bit 1 at weight 128 contributes 128.
- Column 6: bit 1 at weight 64 contributes 64.
- Column 5: bit 1 at weight 32 contributes 32.
- Column 4: bit 1 at weight 16 contributes 16.
- Column 3: bit 1 at weight 8 contributes 8.
- Column 2: bit 1 at weight 4 contributes 4.
- Column 1: bit 1 at weight 2 contributes 2.
- Column 0: bit 1 at weight 1 contributes 1.
- The one-bit weights are 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1.
- Add just the selected weights: 255.
- Answer: 11111111₂ = 255₁₀.
- Sanity check: the answer must lie between zero and the maximum unsigned value for this width.
Final answer: 255₁₀