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.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
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 and . [2 marks]
- Cue. (that is ).
Q2. Perform a left shift of one place on and give the denary value before and after. [2 marks]
- Cue. Before , after (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 (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
- Number systems: binary, denary and hexadecimal, and how to convert between all three, including why hexadecimal is used as a shorthand for binary.
An Eduqas GCSE Computer Science answer on the binary, denary and hexadecimal number systems and how to convert between all three, with worked place-value methods and the reason hexadecimal is a useful shorthand for binary.
- Signed and unsigned binary, and the use of two's complement to represent negative integers, including converting between two's complement and denary for 8-bit numbers.
An Eduqas GCSE Computer Science answer on signed versus unsigned binary and how two's complement represents negative integers, with worked conversions between 8-bit two's complement and denary in both directions.
- How text is represented using character sets, the ASCII character set, the need for and nature of Unicode, and how a character maps to a binary code.
An Eduqas GCSE Computer Science answer on how text is stored in binary using character sets, the 7-bit ASCII set, why Unicode was needed to support many languages, and how a character maps to a binary code.
- The units of data (bit, nibble, byte, kilobyte, megabyte, gigabyte, terabyte), how images are stored as pixels (resolution and colour depth), how sound is sampled (sample rate and bit depth), and calculating file sizes.
An Eduqas GCSE Computer Science answer on the units of data, how images (resolution and colour depth) and sound (sample rate and bit depth) are represented in binary, and full worked calculations of image and sound file sizes.
- Variables and constants, the common data types (integer, real, Boolean, character, string), and the arithmetic, relational and logical operators used in programs.
An Eduqas GCSE Computer Science answer on variables and constants, the common data types (integer, real, Boolean, character, string), and the arithmetic, relational and logical operators, including integer division and modulus.
Sources & how we know this
- WJEC Eduqas GCSE Computer Science specification (from 2016) — Eduqas (2020)