StreakPeaked· Practice

ExamsGATETechnical

In 16-bit 2’s complement representation, the decimal number −28 is:

  1. 1111 1111 0001 1100
  2. 0000 0000 1110 0100
  3. 1111 1111 1110 0100
  4. 1000 0000 1110 0100

Correct answer: 1111 1111 1110 0100

Solution

The correct option represents the 2's complement of the positive value 28, which is calculated by first converting 28 to binary (0000 0000 0001 1100), then inverting the bits and adding 1, resulting in 1111 1111 1110 0100 for -28 in 16-bit representation.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →