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 ]