GATE / CS ARCHIVE

GATE CSE 2003 / QUESTION 9

Signed binary divisibility

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

GATE 2003, Q9 1 mark · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 9, GATE 2003: Interpret every bit string as an eight-bit two’s-complement integer. Which is divisible by 11111011? A. 11100111; B. 11100100; C. 11010111; D. 11011011.
Question 9, GATE 2003: Interpret every bit string as an eight-bit two’s-complement integer. Which is divisible by 11111011? A. 11100111; B. 11100100; C. 11010111; D. 11011011.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step through it (12 steps)

1. For an eight-bit word with most significant bit 1, subtract 256 from its unsigned value. The divisor is −5, so only signed multiples of 5 qualify. Dividing −25 by −5 gives the integer 5; the other listed values leave nonzero remainders.

2. The 8-bit two’s-complement divisor 11111011 is 251−256=−5. The listed values 11100111,11100100,11010111,11011011 are respectively−25,−28,−41,−37. Only−25 is divisible by−5, so A.

Original paper, page 1