Skip to main content
WalesComputer ScienceSyllabus dot point

How do you add binary numbers, what is overflow, and how does an arithmetic shift multiply or divide a binary number?

Adding two binary numbers using the carry rules, the meaning of overflow, and using arithmetic (binary) shifts to multiply and divide by powers of two.

A focused answer to the WJEC GCSE Computer Science Unit 1 content on binary arithmetic, covering adding two binary numbers with the carry rules, the meaning and cause of overflow, and using left and right arithmetic shifts to multiply and divide a binary number by powers of two.

Generated by Claude Opus 4.88 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 topic is asking
  2. Adding binary numbers
  3. Overflow
  4. Arithmetic shifts
  5. Why shifts are used
  6. Try this

What this topic is asking

WJEC wants you to add two binary numbers using the carry rules, explain what overflow is and why it happens, and use an arithmetic (binary) shift to multiply or divide a binary number by powers of two. This is part of the Data representation and data types content in Unit 1 of WJEC GCSE Computer Science (3500).

Adding binary numbers

Overflow

Arithmetic shifts

Why shifts are used

Multiplying and dividing by powers of two with a shift is much faster for a processor than full multiplication or division, so compilers often replace a multiplication by 22, 44 or 88 with a left shift, and a division by those values with a right shift.

Try this

Q1. Add the binary numbers 0000111100001111 and 0000000100000001. [2 marks]

  • Cue. The carries ripple all the way up: the answer is 0001000000010000 (15+1=1615 + 1 = 16).

Q2. A binary number is shifted left by 33 places. By what number has it been multiplied? [1 mark]

  • Cue. 23=82^3 = 8.

Exam-style practice questions

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

WJEC-style Unit 13 marksAdd the two 88-bit binary numbers 0101101001011010 and 0010111000101110. Show your working and give the 88-bit answer.
Show worked answer →

A Unit 1 binary addition question. Add column by column from the right using the rules 0+0=00+0=0, 0+1=10+1=1, 1+1=101+1=10 (write 00 carry 11), 1+1+1=111+1+1=11 (write 11 carry 11). Working from the right: the columns give 0,0,0,1,0,0,0,10,0,0,1,0,0,0,1 with carries handled, producing 1000100010001000 (2 marks for correct method and carries). The answer is 1000100010001000, which checks as 90+46=13690 + 46 = 136 (1 mark for the correct result). Markers reward correct carrying. A common error is to forget to carry when two or three 11s meet, or to lose the leftmost carry.

WJEC-style Unit 12 marksExplain what is meant by overflow when adding binary numbers.
Show worked answer →

A Unit 1 explain question. Overflow happens when the result of a binary addition is too large to fit in the fixed number of bits available, for example when adding two 88-bit numbers gives a result that needs 99 bits (1 mark). The extra carry bit cannot be stored, so it is lost and the stored answer is incorrect (1 mark). Markers reward the idea of a result exceeding the available bits and a carry being lost. A common error is to describe overflow as simply a wrong answer without saying that the result is too big for the number of bits.

Related dot points

Sources & how we know this