Binary Number
Binary Number
46 CDS Pathfinder
BINARY NUMBERS
In NDA exam, generally 1-2 questions are asked from this chapter which are based on conversion
of binary to decimal and decimal to binary. In the binary system, only two symbols 0 and 1 are
used as digits, called binary digits or bits. Since, in this system only two numbers are used, so its
base or radix is 2.
DECIMAL SYSTEM
In the decimal system, we use 10 digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. Since, 10 basic symbols are used
in this system, so its base or radix is 10.
Step 4 When we obtain 1 as quotient, start writing the number from there to upward direction, as shown
above.
∴ ( 21)10 = (10101) 2
Therefore, 21 of decimal system is equal to (10101) of binary system.
EXAMPLE 1. Conversion of 175 into a binary number is
a. (10101111)2 b. (10010011)2 c. (11000111)2 d. None of these
MATHEMATICS Binary Numbers 47
BINARY TO DECIMAL Sol. d. Let us first convert ( 53)10 into binary system of numbers.
CONVERSION 2
2
53
26 1
1. Conversion of Integral Binary Numbers For 2 13 0
converting binary number to decimal number, we 2 6 1
start from the least significant bit, i.e. from right, by 2 3 0
multiplying them with the powers of 2 in increasing 1 1
order, i.e. with 20 , 21 , 22 and so on. This process is The required number in binary system is obtained by
repeated until the most significant bit, i.e. left bit has writing the number from left to upward direction, as
been processed. Adding all of them, we get the shown.
required decimal number. ∴ ( 53)10 = (110101) 2
48 NDA/NA Pathfinder
Now, add (1101) 2 and (110101) 2 Sol. b. Firstly, we multiply (1010) 2 and (111) 2
110101 1010
1101 ×111
1000010 1010
Hence, the answer is (1000010) 2. 1010×
1010××
Binary Subtraction 1000110
The rules of binary subtraction are Now, we convert (1000110) 2 to its decimal equivalent
(i) 0 − 0 = 0 (ii) 1 − 0 = 1 1 × 26 + 0 × 25 + 0 × 24 + 0 × 23 + 1 × 22 + 1 × 21 + 0 × 20
(iii) 1 − 1 = 0 (iv) 0 − 1 = 1 = 64 + 4 + 2 = (70) 2
∴ X = 70
EXAMPLE 6. Subtract 10001 from 10011.
a. ( 00100)2 b. (11000)2 Binary Division
c. ( 00010)2 d. None of these
The rules of binary division are
Sol. c. 10 0 1 1(19) (i) 1 ÷ 1 = 1 (ii) 0 ÷ 1 = 0
−10 0 0 1(17) (iii) 0 ÷ 0 = Not defined (iv) 1 ÷ 0 = Not defined
0 0 0 10 ( 2)
EXAMPLE 8. Divide (1111) 2 by (11) 2 .
a. (11)2 b. (101)2
Binary Multiplication
c. (10 )2 d. None of these
The rules of binary multiplication are
(i) 0 × 0 = 0 (ii) 0 × 1 = 0 Sol. b. 11 ) 1111 ( 101
(iii) 1 × 0 = 0 (iv) 1 × 1 = 1 11
11
11
EXAMPLE 7. What is the value of X, if
(1010) 2 × (111) 2 = (X)10 ? ×
a. 60 b. 70 c. 75 d. 80
PRACTICE EXERCISE
1. Binary equivalent of 182 is 6. The decimal number corresponding to the binary
(a) (10110110)2 (b) (111000110)2 number (111000.0101)2 is
(c) (10111001)2 (d) None of these (a) (56.3275)10 (b) (56.3125)10
(c) (57.4375)10 (d) (57.5625)10
2. The number 0.0011 in binary system represents
(a) rational number 3/8 in decimal system 7. What is the binary equivalent of the decimal
(b) rational number 1/8 in decimal system number 18.5625?
(c) rational number 3/16 in decimal system (a) (1000110011
. )2 (b) (1001110001
. )2
(d) rational number 5/16 in decimal system (c) (1001010010
. )2 (d) (1001010011
. )2
3. The binary number corresponding to (13.0625)10 is 8. In the binary addition, where x, y, z are binary
(a) (1011.0010)2 (b) (1110.0101)2 digits
(c) (1101.0001)2 (d) None of these x1 0 1
4. The sum of (1011.01) 2 + (1001.11) 2 is + 1 0 y 1
1 1 z0 0
(a) 111011 (b) 10001 (c) 10000 (d) 10101
the possible values of x, y and z respectively are
5. What is (1111)2 + (1001)2 − (1010)2 equal to? (a) 0, 1 and 0 (b) 1, 1 and 0
(a) (111)2 (b) (1100)2 (c) (1110)2 (d) (1010)2 (c) 0, 0 and 1 (d) 1, 0 and 1
MATHEMATICS Binary Numbers 49
9. If (10x 010)2 − (11 y1)2 = (10z11)2, then what are 17. A number in binary system is 110001. It is equal
the possible values of the binary digits x, y, z to which one of the following numbers in decimal
respectively? system? e 2013 II
(a) 0, 0, 1 (b) 0, 1, 0 (a) 45 (b) 46
(c) 1, 1, 0 (d) 0, 0, 0 (c) 48 (d) 49
10. If x = (1101)2 and y = (110)2, then what is the 18. The number 83 is written in the binary system
value of x 2 − y 2? as e 2013 II
(a) 100110 (b) 101101
(a) (1000101)2 (b) (10000101)2 (c) 1010011 (d) 110110
(c) (10001101)2 (d) (10010101)2
19. The number 251 in decimal system is expressed
11. What is the value of in binary system by e 2014 I
(0.101)(11) 2 + (0.011)(11) 2 (a) 11110111 (b) 11111011
2 2
2 − (0.101)(01) 2 (0.011)(01) 2 + (0.011)(10) 2
(c) 11111101 (d) 11111110
(0.101)(10)
2 2 2 2
(a) (0.001)2 (b) (0.01)2
20. What is the sum of the two numbers (11110)2 and
(c) (0.1)2 (d) (1)2 (1010)2? e 2014 I
(a) (101000)2 (b) (110000)2
(c) (100100)2 (d) (101100)2
PREVIOUS YEARS’ QUESTIONS 21. What is (1001)2 equal to? e 2014 I
12. The number 292 in decimal system is expressed (a) (5)10 (b) (9)10
in binary system by e 2012 I (c) (17 )10 (d) (11)10
(a) 100001010 (b) 100010001
(c) 100100100 (d) 10101000
22. If (11101011)2 is converted to decimal system,
then the resulting number is e 2015 I
13. What is the decimal number representation of (a) 235 (b) 175
the binary number (11101.001)2? e 2012 I (c) 160 (d) 126
(a) 30.125 (b) 29.025
23. The decimal number (127. 25)10, when converted
(c) 29.125 (d) 28.025
to binary number, takes the form e 2015 I
14. The decimal number ( 57. 375)10, when converted (a) (111111111
. )2
to binary number takes the form e 2012 II (b) (1111110.01)2
(a) (111001011
. )2 (b) (100111110
. )2 (c) (111011111
. )2
(c) (110011101
. )2 (d) (111011011
. )2 (d) (111111101
. )2
15. The decimal representation of the number 24. What is (1000000001)2 − ( 0.0101)2 equal to?
e 2015 II
(1011)2 in binary system is e 2012 II (a) ( 512.6775)10 (b) ( 512.6875)10
(a) 5 (b) 7 (c) 9 (d) 11 (c) ( 512.6975)10 (d) ( 512.0909)10
16. The binary representation of the decimal number 25. What is the binary equivalent of the decimal
45 is e 2013 I number 0.3125? e 2016 I
(a) 110011 (b) 101010 (a) 0.0111 (b) 0.1010
(c) 1101101 (d) 101101 (c) 0.0101 (d) 0.1101
ANSWERS
1 a 2 c 3 c 4 d 5 c 6 b 7 c 8 b 9 b 10 b
11 d 12 c 13 c 14 a 15 d 16 d 17 d 18 c 19 b 20 a
21 b 22 a 23 d 24 b 25 c
50 NDA/NA Pathfinder
2. (c) (. 0011) = 0 × 2−1 + 0 × 2−2 +1 × 2−3 + 1 × 2−4 For fractional part of 185625
. i.e. (.5625)
10
2
Binary
1 1 3
= + = 05625
. × 2 = 1125
. 1
8 16 16
0.125 × 2 = 2.250 0
3. (c) For integer part of ( 13. 0625)
10 0.250 × 2 = 0500
. 2
i.e. ( 13)
10
0500
. × 2 = 10. 1
∴ ( 13) = ( 1101) ∴ ( 185625
. ) = ( 10010.10010)
10 2 10 2
2 13 8. (b) ( x 101) = x × 23 + 1 × 22 + 0 +1 × 20 = 8x + 5
2
2 6 1 ( 10 y 1) = 1 × 23 + 0 + y × 21 +1 × 20 = 9 + 2 y
2
2 3 0 ( 11z 00) = 1 × 24 + 1 × 23 + z × 22 + 0 + 0 = 24 + 4z
2
2 1 1 ∴ 8x + 5 + 9 + 2 y = 24 + 4z ⇒ 8x + 2 y = 4z + 10
As x , y and z can take values 0 and 1 only
For fractional part of ( 13. 0625) i.e. (. 0625)
10 10 ⇒ x = 1, y = 1, z = 0
Binary
0. 0625 × 2 = 0.125 0 9. (b) ( 10x 010) − ( 11y 1) = ( 10z 11)
2 2 2
0.125 × 2 = 0.25 0
⇒ ( 25 × 1 + 0 + x × 23 + 0 × 22 + 1 × 21 + 0)
0.25 × 2 = 0.5 0
0.5 × 2 = 1.0 1 − ( 23 × 1 + 22 × 1 + y × 21 + 1 × 20 )
∴ (13.0625) = (1101.0001) = 24 × 1 + 0 + 22 × z + 21 × 1 + 20
10 2
⇒ (34 + 8x ) − ( 13 + 2 y ) = 19 + 4z
4. (d) 1 0 1 1.0 1
⇒ 2 + 8x − 2 y = 4z
+ 1 0 0 1.1 1
1 0 1 0 1. 0 0 ∴ x = 0, y = 1 and z = 0
( 1001) = 1 × 23 + 0 + 0 + 1 × 20 = 9 = 8 + 4 + 1 = 13
2
( 1010) = 1 × 23 + 0 + 1 × 21 + 0 = 10 and y = ( 110) = 1 × 22 + 1 × 21 + 0 × 20 = 4 + 2 = 6
2 2
∴ 15 + 9 − 10 = 14 ∴ x 2 − y 2 = ( 13)2 − ( 6)2 = 169 − 36 = 133
Now,
2 14 Now, 2 133
2 7 0 2 66 1
2 3 1 2 33 0
1 1 2 16 1
2 8 0
∴ ( 14) = ( 1110)
10 2
2 4 0
6. (b) ( 111000.0101) = 1 × 25 + 1 × 24 + 1 × 23 + 0 × 22
2 2 2 0
+ 0 × 21 + 0 × 20 + 0 × 2−1 + 1 × 2−2 + 0 × 2−3 + 1 × 2−4 1 0
∴ 133 = ( 10000101)
2
MATHEMATICS Binary Numbers 51
( 10) = 1 × 2 + 0 × 2 = 2
1 0 20. (a)
2
11110
and ( 01) = 0 × 21 + 1 × 20 = 1
2
+1010
Thus, the given expression can be written as
101000
[( 0.101 ) ]3 + [( 0.011) ]3
2 2
[( 0.101) ]2 − ( 0.101) ( 0.011) + [( 0.011) ]2 21. (b) ( 1001)
2 2 2 2 2
a3 + b3 = ( 23 × 1 + 22 × 0 + 21 × 0 + 20 × 1)
= ( 0.101) + ( 0.011) = ( 1) Q a 2 − ab + b 2 = a + b 10
2 2 2
= (8 + 1) = ( 9)
10 10
1 1 2 3 1
∴ (57) = ( 111001) 1 1
10 2