Subtraction by 2
Subtraction by 2
Subtraction by 2
Evaluate:
1. 110110 - 10110
Solution:
The numbers of bits in the subtrahend is 5 while that of minuend is 6. We make the number of bits in the
subtrahend equal to that of minuend by taking a `0’ in the sixth place of the subtrahend.
Now, 2’s complement of 010110 is (101101 + 1) i.e.101010. Adding this with the minuend results in:
1 10110 Minuend
1 01010 2’s complement of subtrahend
Carry over 1 1 00000 Result of addition
After dropping the carry-over we get the result of subtraction to be 100000.
2. 10110 – 11010
Solution:
2’s complement of 11010 is (00101 + 1) i.e. 00110. Hence
Minued 10110
2’s complement of subtrahend 00110
Result of addition 11100
As there is no carry over, the result of subtraction is negative and is obtained by writing the 2’s complement of
11100 i.e. (00011 + 1) or 00100.
The 9`s complement of decimal number can be obtained by subtracting each digit of the number from 9.
For example, the 9`s complement of 3 is 6 (9-3=6), and 234 is 765 (999-234 =765).
The 10`s complement of decimal number can be obtained by adding 1 to the least significant digit of 9`s
complement of that number. For example, 10`s complement of 3 is 7 (9-3=6+1=7), and 123 is 877.
In the result, most significant digit 1 is the carryover. So add this carry over to remaining digits 221
i.e, 221 + 1 = 222
Hence, (222)10 is the required result after subtracting (123)10 from (345)10.
1. 11010011.01
2. 10000111.11
3. 00111100.00
4. 10010111.11
2. Convert the binary number 1011010 to hexadecimal.
1. 5A
2. 5F
3. 5C
4. 5B
3. The weight of the LSB as a binary number is:
1. 2
2. 1
3. 4
4. 3
4. The number of bits used to store a BCD digit is:
1. 8
2. 1
3. 4
4. 2
5. Base 10 refers to which number system?
1. decimal
2. hexadecimal
3. octal
4. binary coded decimal
6. Convert the binary number 1001.0010 to decimal.
1. 12.5
2. 90.125
3. 125
4. 9.125
7. What is the decimal value of the hexadecimal number 777?
1. 19
2. 1911
3. 191
4. 19111
8. What is the resultant binary of the decimal problem 49 + 1 = ?
1. 01010101
2. 00110101
3. 00110010
4. 00110001
9. 3428 is the decimal value for which of the following binary coded decimal (BCD) groupings?
1. 11010001001000
2. 11010000101000
3. 011010010000010
4. 110100001101010
10. What is the result when a decimal 5238 is converted to base 16?
1. 1388
2. 12166
3. 1476
4. 327.375
11. Convert the binary number 1001.00102 to decimal.
A. 90.125
B. 9.125
C. 125
D. 12.5
19.
12. How many binary digits are required to count to 10010?
A. 7
B. 2
C. 3
D. 100
13. The BCD number for decimal 347 is ________.
A. 1100 1011 1000
B. 0011 0100 0111
C. 0011 0100 0001
D. 1100 1011 0110
21.
14. The binary number for octal 458 is ________.
A. 100010
B. 100101
C. 110101
D. 100100
22.
15. The sum of 11101 + 10111 equals ________.
A. 110011
B. 100001
C. 110100
D. 100100
40.
16. Convert binary 11001111 to hexadecimal.
A. 8F16
B. CE16
C. DF16
D. CF16
43.
17. Hexadecimal letters A through F are used for decimal equivalent values from:
A. 1 through 6
B. 9 through 14
C. 10 through 15
D. 11 through 17
48.
18. What is the resultant binary of the decimal problem 49 + 01 = ?
A. 01010101
B. 00110101
C. 00110010
D. 00110001