Let M = 11111010 and N = 00001010 be two 8 bit two’s complement number. Their…

2017

Let M = 11111010 and N = 00001010 be two 8 bit two’s complement number. Their product in two’s complement is

  1. A.

    11000100

  2. B.

    10011100

  3. C.

    10100101

  4. D.

    11010101

Attempted by 99 students.

Show answer & explanation

Correct answer: A

First, convert M (11111010) to decimal. Since the sign bit is 1, it represents a negative number. Inverting the bits gives 00000101, and adding 1 results in 00000110 (6). Therefore, M = -6.

Next, convert N (00001010) to decimal. The sign bit is 0, so it is positive. N = 10.

Calculate the product: -6 * 10 = -60.

Finally, convert -60 back to 8-bit two's complement. +60 is 00111100. Inverting gives 11000011, and adding 1 yields 11000100.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Isro