PRACTICE QUESTION ON BINARY NUMBER SYSTEM
Example 1: Convert Decimal Number (98)10 into Binary
Thus, Binary Number for (98)10 is equal to (1100010)2
Example 2: Convert Binary Number (1010101)2 to Decimal
Number.
Solution: Thus, Binary Number (1010101)2 is equal to (85)10 in
decimal system.
Example 3: What is value of (10.11)2 in decimal
So, 10.11 is 2+0+1/2+1/4 = 2.75 in Decimal
Question 4: Convert 278 into a binary number.
10
Solution: (278)10 = (100010110)2
Example 5: Convert 180 into a binary number.
10
Solution: (180)10 = (10110100)2
Example 6: Convert 56 into a binary number.
10
Solution: (56)10 = (111000)2
Example 7: Convert 107310 into a binary number.
Solution 8: (1073)10 = (10000110001)2
Example 9: A particular binary number has 3 digits.
(a) What are the largest and smallest possible binary numbers?
(b) Convert these numbers to base 10.
Solution: A) 111 & 100 B) 7 & 4
Pratik Singh
Example 10: When a particular base 10 number is converted it gives
a 4-digit binary number. What could the original base 10 number be?
Hint: Write the numbers as a list. e.g. 21, 22, 23, etc
Example 11: A binary number has 8 digits and is to be converted to
base 10.
(a) What is the largest possible base 10 answer?
(b) What is the smallest possible base 10 answer?
Example 12: Calculate the difference between the base 10 number
11111 and the binary number 11111, giving your answer in base 10.
Answer: 11080.
Example 13: convert (10011001)2 to decimal……………153
Example 14: What will be the Decimal equivalent of
(111011.101)2?
Answer: the decimal equivalent of (111011.101)2 = 32 + 16 + 8 + 0 + 2
+ 1 + 0.5 + 0.125 = 59.625
Example 15. The number (2217)8 is equivalent to
a) (608)16 b] (028F) 16 C.] (048F) 16 D] (2297)16
Example 16. The binary equivalent of (234.125)10?
Answer: (11101010.001)2
Example 17: Determine the octal equivalent of (432267)10?
a) (432267)8
b) (346731)8
c) (1514213)8.
Pratik Singh
Example 18: The logic XOR operation of (4AC0)16 and (B53F)16 results
a) AACB
b) 0000
c) FFFF.
d) ABCD
Example19: Equivalent of the decimal number (25.375)10 in binary
form
Answer 11001.011
Example 20: Convert the following decimal numbers to binary using 6-bit 1's
complement representation.
1. -1610
2. 1310
3. -310
4. -1010
5. 2610
6. -3110
Example 21: What is the general technique for converting a decimal number to 1's
complement representation?
Answer: The general technique for converting a decimal number to 1's
complement representation is given below.
1. If the number is positive, simply convert it to binary.
2. If the number is negative, write the positive value of the number in
binary
3. Reverse each bit.
Pratik Singh
Example 22: Write the 2's complement for each of the following 5-
bit binary numbers.
a. 010012
b. 010112
c. 001112
d. 000012
Example 23: What advantage does 2's complement have over 1's
complement?
Example 24: Convert the following decimal numbers to binary using 6-bit 2's
complement representation.
1. -1610
2. 1310
3. -310
4. -1010
5. 2610
6. -3110
Example 25: Write the number -710 in signed magnitude representation using 5 bits.
Pratik Singh
Pratik Singh
Answer 24:The 2's complement representation for each number is given
below.
1. 1100002
2. 0011012
3. 1111012
4. 1101102
5. 0110102
6. 1000012
Answer 25: First, we write 710 in binary using 5 bits: 001112. Next, we
change our sign bit from 0 to 1 to make the number negative: 101112
Example 26: write range of all signed number,1’s complement and 2’s
complement
Pratik Singh