GATE / CS ARCHIVE

GATE CSE 2016 SET 1 / QUESTION 7

GATE CSE 2016 Set 1 Q7

Digital Logic · Number Systems & Computer Arithmetic · Full GATE CSE 2016 Set 1 paper

GATE 2016 Set 1, Q7 1 mark · NAT
Report issue

Number Systems & Computer Arithmetic

Question 7, GATE 2016: Find the signed decimal value of the 16-bit two's-complement word 1111 1111 1111 0101.
Tap to enlarge
Answer & solution

Official answer: -11.0 : -11.0

Our answer: −11

Step through it (4 steps)

Invert 1111111111110101 and add 1 to obtain 0000000000001011=11. The leading sign bit is 1, so the two’s-complement value is−11.

A second method treats the word as an unsigned integer and subtracts 216 because the sign bit is 1. The unsigned hexadecimal value is FFF 5, or 65525;65525−65536=−11. The invert-and-add-one method and this positional-weight method agree. A leading 1 does not mean simply attaching a minus sign to the remaining 15-bit magnitude; that would be sign-magnitude, a different representation.

Original paper, page 5 · Answer key