GATE / CS ARCHIVE

GATE CSE 2004 / QUESTION 66

Product of signed eight-bit numbers

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

GATE 2004, Q66 2 marks · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 66, GATE 2004: A=11111010 and B=00001010 are eight-bit two’s-complement numbers. Which listed eight-bit two’s-complement result represents their product? Option B follows GFG (10011100); GateForum instead prints 10111100.
Options:
(A) 11000100
(B) 10011100
(C) 10100101
(D) 11010101
Question 66, GATE 2004: A=11111010 and B=00001010 are eight-bit two’s-complement numbers. Which listed eight-bit two’s-complement result represents their product? Option B follows GFG (10011100); GateForum instead prints 10111100.
Options:
(A) 11000100
(B) 10011100
(C) 10100101
(D) 11010101
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step 1: 11111010 represents 250−256=−6 and 00001010 represents 10. Their product is −60, which fits in eight signed bits.

Step 2: Its encoding is 256−60=196=11000100, option A. A full sixteen-bit product is its sign extension, 1111111111000100; the options clearly request the eight-bit representation.

Step 3: Teaching check: Negating 11111010 by invert-and-add-one gives magnitude 00000110=6, so the signed operand is −6. The product −60 fits in [−128,127], avoiding overflow. Check the chosen output by decoding 11000100 as 196−256=−60.

Original paper, page 9