Module 02 · AQA GCSE Computer Science (8525/2) 60 Assessed Problems · Step-by-Step Guide

Binary & Hexadecimal Revision Workbook

Use this interactive workbook to practise unsigned binary addition, binary shifts, overflow and underflow, hexadecimal conversions, and exam-style questions. Enter your working and answers first, then reveal each solution step by step.

Problems checked 0 / 60
Verified correct 0 / 60
Solutions revealed 0 / 60
Start at Section 1

Your answers and revealed steps are saved automatically in this browser.

Unsigned binary addition and carry rules

Add unsigned binary numbers from right to left. Include any carry arriving in each column, write the answer bit, then carry the remaining value to the left.

Exam mode active: The Carry Rules reference sheet is hidden. Turn off Exam mode above to view it.

Carry rules

Addition Binary Write Carry to next column
0 + 0000
0 + 1110
1 + 11001
1 + 1 + 11111
1 + 1 + 1 + 1100010
1 + 1 + 1 + 1 + 1101110

Carrying across two columns: Four ones make 100₂ — write 0 and carry 10 to the next two columns on the left (equivalent to a decimal carry of 2 into the next column). Five ones make 101₂ — write 1 and carry 10 to the next two columns on the left.

Adding three or more numbers: Use the same right-to-left method. A carry may be 2 or more. In multi-number working tables, carry-in and column total notes are decimal working notes, not binary digits.

Binary shifts, overflow, and underflow

Binary shifting moves every bit left or right to multiply or divide by powers of two. Practise both directions before completing the overflow and underflow explanation.

Exam mode active: The Binary Shift rule reminder is hidden.

Left binary shift (multiply): Count the zeros in the multiplier (× 10₂ = 1 place left / ×2; × 100₂ = 2 places left / ×4; × 1000₂ = 3 places left / ×8) and append that many zeros on the right.

Right binary shift (divide): Count the zeros in the divisor (÷ 10₂ = 1 place right / ÷2; ÷ 100₂ = 2 places right / ÷4) and remove that many bits from the right-hand end.

Task A: Using left binary shifting to multiply numbers

Task B: Using right binary shifting to divide numbers

Task C: Explaining overflow and underflow errors

Not checked

Fill in each gap using the terms from the word bank below (note: binary digits is used twice).

  • 15
  • zero
  • big
  • storage space
  • small
  • binary digits (×2)
  • 16
Overflow and underflow happen when a number is too or too for the computer to handle with the memory it has.
Overflow happens when a number is so big that it can’t be stored. For example, trying to store the value in four will cause an overflow as the maximum value that can be stored is .
Underflow happens when a number is so small that the computer treats it as .
To avoid these problems, you can use more to store the numbers. But remember, using more binary digits takes up more , so you need to decide what’s most important.

Hexadecimal reference and base conversions

Hexadecimal is a base-16 number system that uses the digits 0 to 9 and the letters A, B, C, D, E and F.

Exam mode active: The Decimal–Hexadecimal reference table (0–31) and A–F key are hidden.

Hexadecimal letter values and conversion table (0–31)

Hex digit A B C D E F
Decimal value 10 11 12 13 14 15
DecimalHexadecimal
DecimalHexadecimal

Task A1: Converting hexadecimal numbers to decimal

Worked example (2D₁₆): Place values are 256 | 16 | 1. Two 16s = 32, and D = 13 ones. Total: 32 + 13 = 45₁₀.

Task A2: Converting decimal numbers to hexadecimal

Worked example (16₁₀): How many 16s go into 16? 16 ÷ 16 = 1 with remainder 0. Result: 10₁₆.

Task A3: Converting decimal to binary to hexadecimal

Alternative method: If you find binary easier, convert the decimal number into 8-bit binary first. Split the binary number into two groups of four bits, then convert each group into one hexadecimal digit. A group of four bits is called a nibble.

All numbers in this task fit in eight bits (decimal 0 to 255). Keep any zeros at the start so that you have two complete nibbles.

Remember: Use place values 8 4 2 1 separately for each nibble. For values above 9, use 10 = A, 11 = B, 12 = C, 13 = D, 14 = E, 15 = F.

Worked example: Convert 173₁₀ to hexadecimal via binary

1. Choose the binary place values. Work from left to right through 128, 64, 32, 16, 8, 4, 2, 1. If a value fits into the amount left, use it and subtract it. Otherwise, skip it.

For 173: 173 − 128 = 45; skip 64; 45 − 32 = 13; skip 16; 13 − 8 = 5; 5 − 4 = 1; skip 2; 1 − 1 = 0. So 173 = 128 + 32 + 8 + 4 + 1.

2. Write the binary number. Write 1 under each value used and 0 under each unused value.

Place value1286432168421
Binary bit10101101

Reading the bits from left to right gives 10101101₂.

3. Split into two nibbles. Keep the bits in the same order: 1010 | 1101.

4. Convert each nibble. Restart the place values at 8 4 2 1 for each group: 1010 = 8 + 2 = 10 = A; 1101 = 8 + 4 + 1 = 13 = D.

5. Join the hexadecimal digits. Write the left nibble's digit first, followed by the right nibble's digit. Result: 173₁₀ = 10101101₂ = AD₁₆.

Try each problem using this method. In your working, show the 8-bit binary number and its two 4-bit nibbles before entering the hexadecimal answer.

Task B1: Converting binary numbers to hexadecimal

Worked example (10110110₂): Split into two 4-bit nibbles with weights 8 4 2 1: 1011 (8+2+1 = 11 = B) and 0110 (4+2 = 6). Result: B6₁₆.

Task B2: Converting hexadecimal numbers to binary

Worked example (20₁₆): Convert each digit into a 4-bit nibble (8 4 2 1): 2 = 0010 and 0 = 0000. Result: 00100000₂.

Exam-style questions and mark schemes

Practise GCSE-style questions, including past-paper items and two-mark working questions. Show your working before checking the mark-by-mark solution.

More practice and concept checks

Quick-fire conversions and a final conceptual check to make sure you understand what hexadecimal does — and does not — change in memory.

Source attribution: Content, worked examples, and practice tasks adapted from the Binary and Hex Reference and Revision guide, including past-paper practice from AQA GCSE Computer Science 8525/2 (June 2022 Q1.2 and June 2025 Q2.1) and original exam-style practice with teacher marking guidance.