Similar questions 3 more →
Number Systems & Computer Arithmetic

Answer & solution
Official answer: 1.0 : 1.0
Our answer: 1
Two’s complement has 216 distinct values. Sign magnitude has two encodings of zero, leaving 216−1 distinct values. Hence X−Y=1.
Two’s-complement range is −32768 through 32767, containing 65536 integers. Sign magnitude ranges from −32767 through 32767, containing 65535 integers. Both formats have 65536 bit patterns; the question asks distinct mathematical values, so +0 and −0 count once.