All mock tests are FREE till 31 December — register to save your progress
Unit 2 · Computer System Architecture Paper 2 CS · December 2022 Shift 1

Let R1 and R2 be two 4-bit registers that store numbers in 2's complement form. For the operation R1 + R2, which values of R1 and R2 give an arithmetic overflow?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. R1 = 1100 and R2 = 1010

Explanation

The 4-bit range is −8 to 7. A: −5 + −2 = −7. B: −4 + −6 = −10, which overflows. C: 3 + 4 = 7. D: −7 + −1 = −8.

More Computer System Architecture questions