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.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
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 , or with a left shift, and a division by those values with a right shift.
Try this
Q1. Add the binary numbers and . [2 marks]
- Cue. The carries ripple all the way up: the answer is ().
Q2. A binary number is shifted left by places. By what number has it been multiplied? [1 mark]
- Cue. .
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 -bit binary numbers and . Show your working and give the -bit answer.Show worked answer →
A Unit 1 binary addition question. Add column by column from the right using the rules , , (write carry ), (write carry ). Working from the right: the columns give with carries handled, producing (2 marks for correct method and carries). The answer is , which checks as (1 mark for the correct result). Markers reward correct carrying. A common error is to forget to carry when two or three s 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 -bit numbers gives a result that needs 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
- The binary and denary number systems, why computers store data in binary, the units of data capacity, and converting whole numbers between binary and denary.
A focused answer to the WJEC GCSE Computer Science Unit 1 content on binary and denary numbers, covering why computers use binary, bits bytes and the units of data capacity, place value in base 2, and converting whole numbers between binary and denary in both directions.
- The hexadecimal number system, why hexadecimal is used as a shorthand for binary, and converting between hexadecimal, binary and denary.
A focused answer to the WJEC GCSE Computer Science Unit 1 content on hexadecimal, covering the base 16 number system, why hexadecimal is a convenient shorthand for binary, and converting between hexadecimal, binary and denary in both directions with worked examples.
- Representing signed (negative and positive) integers in binary using the sign and magnitude method and the two's complement method, and converting between them.
A focused answer to the WJEC GCSE Computer Science Unit 1 content on representing signed integers in binary, covering the sign and magnitude method, the two's complement method, how to find a two's complement number, and the advantages of two's complement for arithmetic.
- The purpose and main components of the CPU (the ALU, the control unit and registers) and the von Neumann stored-program architecture.
A focused answer to the WJEC GCSE Computer Science Unit 1 content on the CPU and von Neumann architecture, covering the purpose of the CPU, the roles of the arithmetic logic unit, the control unit and registers, and the von Neumann stored-program model where instructions and data share the same memory.
- Boolean logic using the AND, OR and NOT operators, constructing truth tables, the logic gates, and simplifying simple logic expressions.
A focused answer to the WJEC GCSE Computer Science Unit 1 content on logical operations, covering Boolean logic with the AND, OR and NOT operators, constructing truth tables, the matching logic gates, and simplifying simple logic expressions, with worked examples.