Edexcel GCSE Computer Science (1CP2) · Data › Binary
Practise Two's complement. 12 exam-style questions plus unlimited generated ones on this subtopic, at up to four difficulty levels, with full mark schemes and a progress tracker. Free, no account needed.
Cover the answers and test yourself. The app has these as flashcards that come back just before you'd forget them.
State the place value of the most significant bit in an 8-bit two's complement integer.
−128
A computer game stores the change in a player's score after each round as a two's complement integer. At the moment, 8 bits are used. State the most negative change in score that can be stored.
−128
State the denary value represented by 1000 0000 in 8-bit two's complement.
−128
Sample questions
Written for this site in the style of Edexcel exam questions. They are not taken from real past papers.
Question 1Easy3 marks
(a) State the place value of the most significant bit in an 8-bit two's complement integer.[1]
(b) Identify the range of integers that can be represented using 8-bit two's complement.[1]
0 to 255
−127 to +127
−128 to +127
−255 to +255
(c) State how you can tell from its binary pattern whether an 8-bit two's complement integer is negative.[1]
Show the answer and mark scheme
(a)Answer: −128
−128
(b)Answer: −128 to +127
(c)Answer: Its most significant (leftmost) bit is 1.
the most significant (leftmost) bit is 1
Question 2Medium4 marks
The controller in a freezer stores temperatures, in °C, as 8-bit two's complement integers.
(a) The temperature inside the freezer is −18 °C. Convert −18 to 8-bit two's complement.[1]
(b) The controller stores the value 1111 0101. Convert this value to denary.[1]
(c) Explain why the controller uses two's complement rather than unsigned binary to store the temperatures.[2]