Checking a two's complement conversion
Check a two's complement answer by converting it back to denary with these place values, then compare the result with your starting number. They must match.
Understanding Checking a two's complement conversion in IGCSE Computer Science Paper 1
What it does: Flipping 11111011 gives 00000100. Adding 1 gives 00000101, which is 5. So the original number was -5, which agrees with the starting number. Convert back using the place values -128 to 1. The leftmost bit is worth -128, so the total is -5, the same as the starting number. Flip the bits to get 11111010, then add 1 to get 11111011. A round-trip check on 11111010 gives -6, not -5, so it shows the missing +1. -128 + 1 = -127. The sign bit is worth -128, and the only other bit set is worth 1. The result of the check must match the starting number exactly. Any difference means a mistake, often a forgotten +1.
Common mistakes: The +1 step was forgotten. Flipping 00101101 gives 11010010, and adding 1 gives 11010011. The check would give -46, which does not match -45. The leftmost place value is -128, not +128. It should be -128+64+32+8+4, which gives -20.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 28–41) and word search (Modules 28–58).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
-128 64 32 16 8 4 2 1Fill in the Blanks
Spot the Error
Student with a class code? Join your class →