By signing in you confirm you are 18 or older, or have your parent’s or guardian’s consent.

CDS 2 2025 GK, question 83

Topic: Science and technology

Q83

Assuming the computer is a 4-bit computer, what result is produced after subtraction of 33 from 55 using the 2's complement representation ?

  1. (a) 01010101
  2. (b) 1001010010Correct answer
  3. (c) 11011101
  4. (d) 1100111001

Solution.

Answer: (b) 1001010010

  1. In 4 bits, 5=01015 = 0101 and 3=00113 = 0011; the 2's complement of 00110011 is 1100+1=11011100 + 1 = 1101, which stands for −3-3.
  2. Adding gives 0101+1101=100100101 + 1101 = 10010, the 4-bit sum 00100010 with an end carry of 1.
  3. The end carry shows the answer is positive; dropping it from the register leaves 00100010, which is +2+2, as 5−35 - 3 should be.

Trap: Option (c) 11011101 is only the 2's complement of 3, the number being added, not the result of the subtraction.