Skip to main content
EnglandComputer ScienceSyllabus dot point

How do you add two binary numbers, and what does shifting the bits left or right do?

Binary addition of two 8-bit numbers including carrying and overflow, and binary shifts (left and right) and their effect of multiplying or dividing by powers of two.

An Eduqas GCSE Computer Science answer on adding two 8-bit binary numbers (with carrying and overflow) and performing left and right binary shifts, including how a shift multiplies or divides by powers of two.

Generated by Claude Opus 4.811 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Binary addition
  3. Overflow
  4. Binary shifts
  5. Try this

What this dot point is asking

Eduqas wants you to add two 8-bit binary numbers (carrying correctly and spotting overflow) and to carry out binary shifts left and right, explaining that a shift multiplies or divides the number by a power of two. Both are short, method-marked questions on Component 1, so showing the working is essential.

Binary addition

Overflow

Binary shifts

Try this

Q1. Add the 8-bit numbers 0011110000111100 and 0000011000000110. [2 marks]

  • Cue. 0100001001000010 (that is 60+6=6660 + 6 = 66).

Q2. Perform a left shift of one place on 0000100100001001 and give the denary value before and after. [2 marks]

  • Cue. Before 99, after 00010010=1800010010 = 18 (multiplied by 2).

Q3. State the effect of a right shift of three places on a binary number. [1 mark]

  • Cue. It divides the number by 23=82^3 = 8 (rounding down).

Exam-style practice questions

Practice questions written in the style of WJEC Eduqas exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Eduqas Component 1, 20223 marksAdd the two 8-bit binary numbers 01101011 and 00110110. Give your answer as an 8-bit number and state whether overflow has occurred.
Show worked answer →

Add the columns from the right, carrying a 1 whenever the column total reaches two.

01101011 + 00110110 = 10100001, with the carries propagating through the middle columns.

The result fits in 8 bits (the leading bit is part of the answer, not a carry out of bit 8), so there is no overflow.

Markers award method marks for correct carrying. If the sum had needed a 9th bit, you would state that overflow has occurred because the result is too large for 8 bits.

Eduqas Component 1, 20234 marksA program performs a left shift of two places on the 8-bit binary number 00000110. State the result, give its denary value before and after, and explain the effect of the shift.
Show worked answer →

Before: 00000110 is denary 6.

A left shift of two places moves every bit two columns to the left, filling the empty right-hand positions with zeros: 00011000.

After: 00011000 is denary 24.

Effect: a left shift of n places multiplies the number by 2 to the power n. Here a shift of two multiplies by 4, and 6 times 4 = 24, which matches (1 mark each for before, result, after, and the multiply-by-4 explanation).

Related dot points

Sources & how we know this