When the binary value is right but the bit width is wrong

Put three answers on the board: 11, 0011 and 00000011. Ask, “Which one is right?” If students ask what the question was, let that interruption drive the lesson. All three strings represent the unsigned value three. Only one answers “Write three using exactly eight bits.” The difference is not another conversion rule. It is a second requirement that students have to notice and check. This short activity works after students have learned binary place value. It takes about 15 minutes, needs no devices, and keeps two questions separate: “Does this show the right number?” and “Does it use the required number of bits?” Throughout the activity, tell students that all values are unsigned. Sign bits and two’s complement are for another lesson.

Set up two separate checks

Draw eight labelled boxes on the board, with weights 128, 64, 32, 16, 8, 4, 2 and 1 from left to right. Underneath, draw just the last four boxes. Write 11 under the two rightmost positions and ask students to point to the weights that are switched on. Both are on, so the value is two plus one. Add two zeroes on the left. Nothing about those last two weights changes. Now place the same digits in the eight boxes and fill each unused box to the left with zero. Give students two columns in their notebooks: “right value” and “right width.” Ask them to fill both even when the first answer is no. That makes a useful error visible: a string can have the correct number of digits and still represent the wrong value. For example, 0101 has four bits, but it represents five, not three.

Printable student prompt

Name: ____________________ | Use unsigned binary throughout.

  1. For each string, write its decimal value and count its bits: 11, 0011, 00000011, 0101. Circle the string that satisfies “Write decimal 3 in exactly four bits.” Underline the string that satisfies “Write decimal 3 in exactly eight bits.”
  2. A student has written 11 in response to the eight-bit instruction. What is correct about the answer? What needs fixing? Rewrite it without changing its value.
  3. A second student changes 11 to 1100 to make it four bits long. Work out the new value. Explain why adding zeroes to the right is different from adding them to the left.
  4. Write decimal 16 in binary. Can it fit in exactly four unsigned bits? Show how the largest possible four-bit number supports your answer.
  5. Compare 00001000 and 00001001 as answers to “Write decimal 9 in exactly eight bits.” Which checks does each answer pass?

Worked responses and what to listen for

For question 1, the first three strings all show three, and their widths are two, four and eight respectively. 0101 has four bits and shows five. The circled string is 0011; the underlined string is 00000011. If a student chooses both four-bit strings, ask them to label the weights under the ones. If they circle 11, ask which words in the instruction they have not checked yet.

In question 2, the student got the value right. Add six zeroes on the left to make 00000011. For question 3, 1100 switches on the eight and four positions, so it represents twelve. The right-hand padding moved the ones into higher place values. Have students hold the column labels still and move the digits, rather than sliding the whole diagram across the page. For question 4, 10000 represents 16 and requires five bits. Four unsigned bits can represent at most 15 because 1111 adds eight, four, two and one. Removing the leftmost one would leave 0000, which is zero, so shortening the answer is not a fix. This is a useful contrast: padding a representation can preserve the value, but squeezing a number into too few bits may be impossible. For question 5, both strings pass the width check. Only 00001001 passes the value check because it switches on both the eight and one positions. 00001000 is eight. Ask students to identify the first wrong digit from the right and explain its contribution.

Optional browser check, after the reasoning

If you have devices, ask students to verify the value with a generic binary-to-decimal converter after they commit to their written answers. Then have them check the width themselves. Some converters display three as 11 even if the input was 00000011. If that happens, ask what the converter has verified and what it has not. If a tool rejects or reformats leading zeroes, use the labelled boxes instead. The lesson should work without a specific website, account or device.

Exit ticket

Ask each student to write decimal 9 in exactly eight bits, then explain in one sentence why 1001 would not fully answer that instruction. The expected response is 00001001: 1001 gives nine but has only four bits. If the class often checks one condition and forgets the other, keep the two-column check on the next worksheet. You can remove the scaffolding once students start checking both requirements on their own.

Hashim Khan is a computer science and maths tutor at LearnAllStudents. He uses short worked examples to help secondary students connect their reasoning to the exact wording of a question. Tutor profile

Hashim Khan
Hashim Khan
Articles: 1
Verified by MonsterInsights