Multiple choice

P and Q are two numbers represented in signed two’s complement as 11101101 and 11100110 respectively. Calculate P – Q as signed two’s complement form.

  1. 00000111

  2. 0000 1001

  3. 0011 1001

  4. 1100 1100

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

$ P = 111 0111 01 $ $\bar P = 000 10010 $ $\bar P+ 1 = 000 100 11 \qquad Q = 11100110$ $\bar Q = 000 11 001 \qquad \bar Q + 1 = 000 11 010 \qquad Q – P = 00011010$ $P – Q = 00010011$