Exam-style question
Try this first
A microprocessor stores the temperature as an 8-bit signed integer using Two's Complement. If the stored value is 11101010, what is the temperature in denary degrees Celsius? Show your working. [4 marks].
Answer and explanation
Concise answer
The 8-bit signed binary number is 11101010.
Why this is correct
1 mark for recognising the MSB represents -128 for signed numbers. 1 mark for correctly identifying the other positive bit values (64, 32, 8, 2). 1 mark for correctly summing these values (e.g., -128 + 64 + 32 + 8 + 2 or 106 - 128). 1 mark for the correct final denary value of -22.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
