Binary arithmetic — AQA GCSE Computer Science
Binary arithmetic encompasses the rules and operations used by digital systems to add binary numbers and execute logical bit shifts. Mastering addition rules and identifying 8-bit overflow errors is essential for achieving top marks in AQA GCSE Computer Science Paper 1.
Binary arithmetic explained
This statement fixes the size of binary addition answers in 8525: at most 8 bits, and no carry out beyond the 8th bit.
Read the full explanation
In practice you add two 8-bit values column by column from the right, and the leftmost (8th) column is the last one you complete. If that column would generate a carry out, the question is outside the published scope, so you will not be asked to represent a 9th bit. Use it to plan practice: keep both operands within 8 bits, align them under place values 2⁷ down to 2⁰, and stop at the 8th bit. Check your answer has no more than eight digits and that any carry you wrote sits inside the 8-bit field.
Your focus
- Add two binary values and produce an answer of no more than 8 bits.
- Align operands correctly by place value before performing column addition.
- Recognise when a calculation would carry beyond the 8th bit and falls outside the published scope.
Which command word is this?
Produce the exact binary result. Always display carried bits in your working to secure intermediate marks.
Binary arithmetic exam tips
Topic Overview
Binary arithmetic forms the core foundation of processor execution, dictating how an Arithmetic Logic Unit (ALU) carries out computational tasks using electronic logic gates. In AQA GCSE Computer Science, students are required to manipulate unsigned binary integers, perform reliable binary additions, and execute logical shifts.
This topic directly links low-level bit representation to real-world software behaviour, teaching students to identify hardware limitations such as overflow errors and integer truncation. Mastering these operations is essential for answering both computational and theory-based architecture questions across Paper 1.
Key Concepts
- →Core rules of binary addition: 0+0=0, 0+1=1, 1+1=10 (0 carry 1), and 1+1+1=11 (1 carry 1).
- →Overflow errors: occur when the result of an arithmetic operation exceeds the maximum value an allocated register can hold (e.g. greater than 255 in an 8-bit register).
- →Logical binary shifts: shifting bits left multiplies the value by 2 for each place shifted, while shifting right performs integer division by 2 for each place shifted.
- →Data truncation: right shifts can cause least significant 1 bits to drop off, causing precision loss; left shifts can cause most significant 1 bits to drop off, causing overflow.
Examiner Tips
- 💡Write both operands right-aligned and label place values 2⁷ to 2⁰ before adding any column.
- 💡Add from the rightmost column leftwards, recording each carry above the next column, and stop after the 8th bit.
- 💡After adding, count the digits in your answer to confirm it is no longer than 8 bits.
- 💡Always clearly show your carry bits directly above or below the addition columns; examiners award working marks even if a minor addition slip occurs.
- 💡When explaining an overflow error, always state the maximum capacity (e.g. 8 bits / 255) and note that the 9th bit cannot be stored in the register.
- 💡Double-check all binary arithmetic by converting the inputs and your final binary answer into denary to guarantee 100% accuracy.
Common Mistakes
- Writing a 9th bit when the 8th column carries. Correction: the published scope excludes carrying beyond the 8th bit, so answers stay within 8 bits.
- Misaligning operands so the columns do not match place values. Correction: line up both numbers on the right so 2⁰ sits under 2⁰ and 2⁷ under 2⁷ before adding.
- Assuming the answer must always be exactly 8 bits. Correction: the maximum length is 8 bits, so a shorter answer with leading zeros omitted is still valid.
- Writing '2' or '10' directly in a single bit column during addition rather than recording a 0 and carrying 1 to the next place-value column.
- Believing that a logical right shift divides accurately for all integers, forgetting that odd numbers lose their 0.5 fractional component due to bit truncation.
- Thinking overflow means a general program crash rather than a specific condition where an arithmetic result exceeds the fixed capacity of the hardware register.
Revision Plan
- 1Day 1-2: Memorise the four primary binary addition rules and practise 4-bit addition calculations.
- 2Day 3-4: Progress to 8-bit binary additions involving multiple consecutive carries, verifying each by converting to denary.
- 3Day 5-6: Practise logical left and right shifts by 1, 2, and 3 places, documenting both binary patterns and arithmetic effects.
- 4Day 7: Tackle AQA exam-style questions focused on overflow identification and short explanation answers.
Exam Question Types
- 📋8-bit addition calculations: Direct 2-mark questions requiring addition of two binary numbers with carries shown.
- 📋Overflow analysis questions: 2-3 mark scenario questions asking whether overflow has occurred and requiring an explanation of its impact on the CPU.
- 📋Logical bit shift operations: 1-2 mark questions asking students to shift a given binary pattern and state the new denary value or arithmetic consequence.
Command Word Expectations (AQA)
Produce the exact binary result. Always display carried bits in your working to secure intermediate marks.
Identify a specific cause and provide an linked consequence (e.g. state that a 9th bit is generated, which cannot be stored in an 8-bit register, resulting in an overflow error and incorrect output).
Provide a concise numerical or factual answer without needing to elaborate on working (e.g. naming the mathematical effect as 'multiplication by 8').
How Students Lose Marks (Examiner Pitfalls)
Step-by-Step Worked Solutions
Question: Add the following two 8-bit binary integers together: 01011100 and 00111010. Show all your working, including any carries.
- 1.Step 1: Align the numbers vertically from right (least significant bit) to left: 01011100 + 00111010.
- 2.Step 2: Add column by column from right to left. Column 1 (units): 0 + 0 = 0. Column 2 (twos): 0 + 1 = 1. Column 3 (fours): 1 + 0 = 1. Column 4 (eights): 1 + 1 = 0, carry 1. Column 5 (sixteens): 1 + 1 + 1 (carry) = 1, carry 1. Column 6 (thirty-twos): 0 + 1 + 1 (carry) = 0, carry 1. Column 7 (sixty-fours): 1 + 0 + 1 (carry) = 0, carry 1. Column 8 (one-hundred-twenty-eights): 0 + 0 + 1 (carry) = 1, carry 0.
- 3.Step 3: Verify using denary equivalents: 01011100 = 64 + 16 + 8 + 4 = 92; 00111010 = 32 + 16 + 8 + 2 = 58; 92 + 58 = 150. Binary result 10010110 = 128 + 16 + 4 + 2 = 150.
Question: Perform a logical shift left of 2 places on the binary pattern 00010110. State the denary value before and after the shift, and explain the mathematical effect.
- 1.Step 1: Move each bit two positions to the left: 00010110 becomes 01011000.
- 2.Step 2: Fill the two vacated least significant bit positions on the right with zeros.
- 3.Step 3: Convert both values to denary to verify the effect. Original (00010110) = 16 + 4 + 2 = 22. New (01011000) = 64 + 16 + 8 = 88.
- 4.Step 4: State mathematical effect: Shifting left by 2 positions multiplies the original value by 2 to the power of 2 (2^2 = 4). 22 multiplied by 4 is 88.