StreakPeaked· Practice

ExamsGATETechnical

The smallest integer that can be represented by an 8-bit number in 2's complement form is

  1. -256
  2. -128
  3. -127
  4. 0

Correct answer: -128

Solution

In 2's complement representation, the range of an 8-bit number is from -128 to 127. The smallest integer, which is represented by setting the most significant bit to 1 (indicating a negative number) and all other bits to 0, is -128.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →