GATE 2020 EC – Question 48
P, Q, and R are the decimal integers corresponding to the 4-bit binary number 1100 considered in signed magnitude, 1's complement, and 2's complement representations, respectively. The 6-bit 2's complement representation of $(P+Q+R)$ is
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) 110101
Explanation
Read the 4-bit pattern 1100 in each system.
- Signed magnitude: sign bit 1, magnitude 100 = 4, so $P=-4$.
- 1's complement: invert the bits, $0011=3$, so $Q=-3$.
- 2's complement: invert and add 1, $0100=4$, so $R=-4$.
$P+Q+R=-11$. In 6-bit 2's complement, $64-11=53=110101$.