Tutorial Sheet 1 (Unit-3)
Q.1 Convert following to Hexadecimal Number system.
a) 11011011
b) 101010101111
c) 1111000010101101
Solution for question-1:
a) DB
b) ABD
c) FOAD
Q.2 Convert the following binary numbers to decimal.
a) 110110
b) 1110101101
Solution for question-2:
a) To convert a binary number to decimal, use the positional value of each bit.
(1×25) +(1×24)+(0×23)+(1×22)+(1×21)+(0×20)
(1×25)+(1×24)+(0×23)+(1×22)+(1×21)+(0×20)
=32+16+4+2=32+16+4+2
=54
So, the decimal equivalent of the binary number 110110 is 54.
b) To convert a binary number to decimal, use the positional value of each bit.
(1×29)+(1×28)+(1×27)+(0×26)+(1×25)+(0×24)+(1×23)+(1×22)+(0×21)+(1×20)
=512+256+128+0+32+0+8+4+0+1=512+256+128+0+32+0+8+4+0+1
=941
So, the decimal equivalent of the binary number 1110101101 is 941.
Q.3 Convert the following 101101101 to Octal.
Solution for question 3:
To convert a binary number to octal, group the binary digits into sets of three from right to
left, and then replace each group with its corresponding octal value.
101 101 101
555
So, the octal equivalent of the binary number 101101101 is 555.
Q4. Convert the decimal number (10.25)10 to Octal.
Solution : (10.25)10
Separate the integer part : (10)10 = (12)8
Fractional part:
= 0.25 x 8 = 2.00
Note: Keep multiplying the fractional part with 8 until decimal part .00 is obtained.
(.25)10 = (.2)8
Answer: (10.25)10 = (12.2)8
Q6. Convert the convert from Hexadecimal (3A)16 to Binary number
Solution : (3A)16
Binary of 3= 0011
Binary of A=1010
Ans. (3A)16= (00111010)2
Assignment for H.W.
Q1. Convert the binary number (110011.101)2 to its decimal equivalent.
Q2. Convert the octal number (732.45)8 to its binary equivalent
Q3. Convert the decimal number (245.8125)10 to its hexadecimal equivalent.
Q4. Convert the hexadecimal number (1F3.A)16 to its binary and octal
equivalents.
Q5. Convert the binary number (110101.11)2 :
1. Decimal
2. Octal
3. Hexadecimal
4. Convert the decimal result to Gray code.
Q6. Convert the following binary number (10110101)2 to:
1. Gray Code
2. Excess-3 Code
3. BCD (Binary-Coded Decimal)
************************************************************************