Let R1 and R2 be two 4-bit registers that store numbers in 2’s complement form. For the operation R1+R2, which one of the following values of R1 and R2 gives an arithmetic overflow?
1100 is −4 and 1010 is −6, and their sum −10 is below the 4-bit range of −8 to 7. The sum bits 0110 have a positive sign, so this is overflow. The other options stay within range.
More Number Representation and Arithmetic questions
GATE 2021 CS (CS1) Q16– Let the representation of a number in base 3 be 210. What is the hexadecimal…
GATE 2021 CS (CS1) Q34– Consider the following representation of a number in IEEE 754 single-precision floating…
GATE 2019 CS Q14– In 16-bit 2's complement representation, the decimal number -28 is:
GATE 2019 CS Q18– Consider Z=X-Y, where X, Y and Z are all in sign-magnitude form. X and Y are each…
GATE 2016 CS (CS1) Q17– The 16-bit 2's complement representation of an integer is 1111 1111 1111 0101; its decimal…
GATE 2017 CS (CS1) Q17– The n-bit fixed-point representation of an unsigned real number X uses f bits for the…