Session XP: 0
Spec 2.1Paper 1

Binary, Hex & Number Systems

Converting between bases, binary addition, two's complement, shifts, why hex is used. Calculation questions appear in every past paper.

—
Best score
—
Last attempt
Best attempt progress
0
XP earned
Watch first — Craig 'n' Dave
Craig 'n' Dave · Edexcel 1CP2Bit patterns (5:31)
Craig 'n' Dave · Edexcel 1CP2Number bases (10:17)
Craig 'n' Dave · Edexcel 1CP2Signed integers using two's complement (7:58)
Craig 'n' Dave · Edexcel 1CP2Converting between denary and 8-bit binary (6:02)
Craig 'n' Dave · Edexcel 1CP2Adding two 8-bit binary integers (7:26)
Craig 'n' Dave · Edexcel 1CP2Binary shifts (5:24)
Craig 'n' Dave · Edexcel 1CP2Converting between denary and 2-digit hexadecimal (9:59)
Craig 'n' Dave · Edexcel 1CP2Why hexadecimal is used in computer science (2:40)
Key facts

Converting between bases — fill in the table

Hex digits: 0-9 then A=10, B=11, C=12, D=13, E=14, F=15. (Jun 2022 Q3(a)(i): 0011 1001. Jun 2023 Q5(d)(ii): 5B.)

ConversionMethod
Binary → Denary
Denary → Binary
Binary → Hex
Hex → Binary

Arithmetic and shifts — fill in the table

TermDefinition
Binary addition
Overflow
Two's complement
Logical shift left
Logical shift right
Arithmetic shift right

Why hexadecimal is used in computing — fill in the table

PointDetail
Shorthand for binary
Fewer errors
Easy conversion
Used in

Jun 2023 Specimen Q1(f)(ii): "hexadecimal is used as shorthand for binary — uses fewer digits — so humans make fewer mistakes". Do NOT say hex saves memory/storage — it doesn't; it's for human readability only.

Bit patterns, two's complement, shifts (spec 2.1.1 – 2.1.5) — fill in the table

IdeaDetail
Bit patterns
Unsigned 8-bit
Two's complement 8-bit
Making a negative number
Logical shift left
Logical shift right
Overflow

Worked examples

  • 01101100 is 108. Shift left 1: 11011000 = 216 (108 × 2).
  • 01101100 shifted right 2: 00011011 = 27 (108 ÷ 4).
  • 11111111 + 00000001 = 100000000, which is 9 bits. In 8 bits the left bit is lost, leaving 00000000: overflow.
  • Bits shifted off the end are lost, so shifting left too far gives a wrong answer.
Exam questions — 8 questions · 15 marks · from real 1CP2 past papers
1 markWhy hex is used1CP2 Specimen Q1(f)(ii) style

Why is hexadecimal used by programmers rather than binary?

A Hexadecimal uses less storage space than binary
B Hexadecimal is shorthand for binary — using fewer digits makes it easier for humans to read and reduces errors
C Hexadecimal is processed faster by the CPU
D Hexadecimal can represent more values than binary
2 marksBinary to hex conversion1CP2 Jun 2022 Q3(a)(i)-(ii) style

Convert the denary number 57 to binary. Then convert your binary answer to hexadecimal. Show your working. (2 marks)

Hint: Convert denary → binary using place values (128,64,32,16,8,4,2,1). Then split into two nibbles and convert each to one hex digit.
+20 XP
2 marksTwo's complement1CP2 Jun 2022 Q3(a)(iii) style

Describe how to find the two's complement of a binary number. (2 marks)

Hint: Two steps: (1) flip all bits → (2) add 1. Both steps needed for the mark.
+20 XP
1 markOverflow1CP2 Jun 2022 Q3(a)(iv) style

When adding two 8-bit binary numbers, what is an overflow error?

A When the result is negative
B When the result is too large to be stored in the available number of bits, causing an incorrect result
C When a bit is read incorrectly from memory
D When the CPU attempts to divide by zero
1 markBit patterns1CP2 style

How many different values can be represented by 6 bits?

A 6
B 36
C 64
D 128
3 marksTwo's complement1CP2 style

Write the denary number -5 as an 8-bit two's complement binary number. Show your method. (3 marks)

Hint: Write 5 in 8 bits, flip every bit, add 1.
+30 XP
3 marksBinary shift1CP2 style

Perform a logical shift left by 2 places on 00010110 (denary 22). State the result and its effect on the value. (3 marks)

Hint: Move every bit two places left and fill the right with zeros.
+30 XP
2 marksOverflow1CP2 style

Add the 8-bit patterns 11001000 and 01111000. State the result of the addition and explain whether overflow occurs. (2 marks)

Hint: Work out how many bits the true answer needs.
+20 XP
Quick recall flashcards

Module complete! 🎉

Score loading...

⚡ +10 XP