What is the sum of the binary numbers \((10110110) _2\) and \(( 10001 1) _2\)
- AOption (a)
\( (11011001)_2 \)
- BOption (b)
\( ( 1 10001 00) _2\)
- COption (c)
\(( 1 100001 0) _2\)
- DOption (d)
\((10010000) _2\)
View answer & explanationHide answer & explanation
Correct answer
\( (11011001)_2 \)
Why this answer is correct
Calculation:
Convert \( (10110110)_2 \) to decimal:
\( (10110110)_2 = 1 \times 2^7 + 0 \times 2^6 + 1 \times 2^5 + 1 \times 2^4 + 0 \times 2^3 + 1 \times 2^2 + 1 \times 2^1 + 0 \times 2^0 \)
\( = 128 + 0 + 32 + 16 + 0 + 4 + 2 + 0 = 182 \)
Convert \( (100011)_2 \) to decimal:
\( (100011)_2 = 1 \times 2^5 + 0 \times 2^4 + 0 \times 2^3 + 0 \times 2^2 + 1 \times 2^1 + 1 \times 2^0 \)
\( = 32 + 0 + 0 + 0 + 2 + 1 = 35 \)
Add the two decimal numbers
\( 182 + 35 = 217 \)
Convert the sum back to binary
To convert \( 217 \) into binary, divide by 2 and note down the remainders:
\( 217 \div 2 = 108 , \text{remainder} , 1 \)
\( 108 \div 2 = 54 , \text{remainder} , 0 \)
\( 54 \div 2 = 27 , \text{remainder} , 0 \)
\( 27 \div 2 = 13 , \text{remainder} , 1 \)
\( 13 \div 2 = 6 , \text{remainder} , 1 \)
\( 6 \div 2 = 3 , \text{remainder} , 0 \)
\( 3 \div 2 = 1 , \text{remainder} , 1 \)
\( 1 \div 2 = 0 , \text{remainder} , 1 \)
Reading the remainders from bottom to top, \( 217_{10} = (11011001)_2 \)
The sum of \( (10110110)_2 \) and \( (100011)_2 \) is \( (11011001)_2 \).
Therefore, the correct option is 1.