The number can be represented as 1010 in 4-bit 2's complement representation. Which of the following is/are CORRECT 2 's complement representation(s) of ?
GATE CSE 2025Digital Logic › Number Systems & RepresentationVerified
GATE CSE 2025 PYQ: The number − 6 -6 − 6 can be represented as 1010 1010 1010 in 4 4 4 -bit 2 2 2 's complement representation.…
- Ain 8 -bits
- Bin 8-bitsCorrect answer
- Cin 16-bits
- Din 16-bitsCorrect answer
Answer
(B, D) 1111 1010 1111 \: 1010 1111 1010 in 8 8 8 -bits; 1111 1111 1111 1010 1111 \: 1111 \: 1111 \: 1010 1111 1111 1111 1010 in 16 16 16 -bits
Approach
Use 2's complement sign extension: when widening a negative 2's complement number, replicate its sign bit (MSB) into all newly added higher-order bit positions. Then verify each option by converting it back to decimal.
In 2's complement representation, widening a negative number requires copying the MSB (sign bit) to all additional high-order positions. Starting from 4-bit 1010 for -6, this gives 1111 1010 in 8 bits and 1111 1111 1111 1010 in 16 bits, so options B and D are correct. Options A and C incorrectly pad with zeros and therefore represent different negative values.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.