4. The two's complement of the number (01010)2 is:

  1. 10101
  2. 10011
  3. 00101
  4. 01100
  5. 10110

5 is CORRECT. The two's (2s) complement is done in two steps: Step 1 is to compute the one's (1s) complement of 01010: 10101. Step 2 is to add 1 to Step 1: Thus 2s[01010] = 10110.

[ Go Back To Question 4 ]

[ Go Back To The Beginning Of Quiz ]