Question
Question: Solve: \({{\left( 100 \right)}_{2}}-{{\left( 10 \right)}_{2}}\) \(\left( A \right)\text{ }{{\left(...
Solve: (100)2−(10)2
(A) (11)2
(B) (01)2
(C) (10)2
(D) (101)2
Solution
In this question we have been given two numbers with their base as 2 for which we have to do subtraction. To solve this question, we will use the rules of binary subtraction. We know the rules of binary subtraction that 0−0=0, 1−0=1, 1−1=0 and 0−1 with a borrow of 1. We will use these rules to subtract and get the required solution.
Complete step-by-step solution:
We have the expression given to us as:
⇒(100)2−(10)2
We can see in the expression that we have a three-digit binary number and a two-digit binary number.
To simplify the subtraction, we will convert the two-digit binary number into a three-digit number by adding a 0 as its prefix since adding a 0 does not change its value.
Therefore, we can write the expression as:
⇒(100)2−(010)2
On writing the numbers in subtraction and using the rules of binary subtraction, we get: