Skip to main content

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.…

The number −6-6 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 −6-6?

  1. A
    1000 10101000 \: 1010 in 8 -bits
  2. B
    1111 10101111 \: 1010 in 8-bits
    Correct answer
  3. C
    1000 0000 0000 10101000 \: 0000 \: 0000 \:1010 in 16-bits
  4. D
    1111 1111 1111 10101111 \: 1111 \: 1111 \: 1010 in 16-bits
    Correct 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.