GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 2.10

Hexadecimal twos complement of negative 539

Digital Logic · Number Systems & Computer Arithmetic · Full GATE CSE 2001 paper

GATE 2001, Q2.10 2 marks · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 2.10, GATE 2001: Choose the three-hex-digit two’s-complement representation of decimal −539 from ABE,DBC,DE5,9E7.
Tap to enlarge
Your answer
Answer & solution

Answer: C for the displayed 12-bit width (no official key was published)

Step through it (5 steps)

Step 1: Convert 539 to hexadecimal:539=2·256+1·16+11=21B₁₆. The three-hex-digit answer options imply 12 bits.

Step 2: Complement each hex digit to F, giving DE4, then add one to obtain DE5. Independently,1000₁₆−021B₁₆=0DE5₁₆.

Thus C. A wider representation would sign-extend with leading F digits; two’s-complement representation is width-dependent, so DE5 is interpreted using the options’ width.

Original paper, page 5