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

  1. A. 0101
  2. B. 10010
  3. C. 1101
  4. D. 11001

Correct Answer: B. 10010

Explanation

In 4-bit binary, 5 is 0101 and 3 is 0011. Subtracting 3 means adding the 2's complement of 3 (which is 1101). The addition 0101 + 1101 = 10010. The ALU produces this raw result before any carry bits are discarded.

Related questions on Computer Science

Practice more CDS General Knowledge questions