ExamBank Scot · Higher Computing Science question bank · All Higher Computing Science questions

Higher Computing Science 2021 Question 1

3 marks · Two's complement

Convert the denary number −9 into 8‑bit two’s complement. State the range of denary values that can be represented using 8‑bit two’s complement. Two’s complement can be used to represent positive and negative integers.

Marking scheme

1111 0111 -128 to 127 OR -2⁷ to 2⁷-1

Previous question: Higher Computing Science 2019 Question 18

Next question: Higher Computing Science 2021 Question 2