Skip to content
Official PYQ · 2002

GATE CS 2002 Q1.15 — Number Representations (Fixed and Floating Point)

Explain with AI

The 2′s2's complement representation of the decimal value −15-15 is

Choose one option
View worked solution

Answer: D

To find the 22's complement representation of the decimal value −15-15, we first determine the minimum number of bits required.

The range of numbers that can be represented in nn-bit 22's complement form is:

[−2n−1,2n−1−1][-2^{n-1}, 2^{n-1}-1]
  • For n=4n = 4 bits, the range is [−8,7][-8, 7]. Since −15-15 lies outside this range, it cannot be represented in 44 bits. Thus, option A is incorrect.
  • For n=5n = 5 bits, the range is [−16,15][-16, 15]. Since −15-15 lies within this range, we can represent it using 55 bits.

Now, let's find the 55-bit 22's complement representation of −15-15:

  1. Represent the positive value +15+15 in 55-bit binary: +1510=011112+15_{10} = 01111_2
  2. Find the 11's complement by inverting all the bits: 10000210000_2
  3. Add 11 to the Least Significant Bit (LSB) to get the 22's complement: 100002+1=10001210000_2 + 1 = 10001_2

Thus, the 22's complement representation of −15-15 is 1000110001.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Number Representations (Fixed and Floating Point) questions