Assignment – 2
Topics : Number System
By : Souvik Chakraborty , [Link] (C.S) , [Link]
Basic Level: Direct Conversions
1. Convert the following decimal numbers to binary:
o a) 25
o b) 156
o c) 63
2. Convert the following binary numbers to decimal:
o a) 10101
o b) 110110
o c) 1000011
3. Convert the following decimal numbers to octal:
o a) 45
o b) 128
o c) 255
4. Convert the following decimal numbers to hexadecimal:
o a) 100
o b) 254
o c) 4095
🧮 Intermediate Level: Cross Base Conversions
5. Convert the following binary numbers to hexadecimal:
o a) 11011110
o b) 10101111
o c) 10011011
6. Convert the following hexadecimal numbers to binary:
o a) 3A
o b) 7F
o c) 1D4
7. Convert the following octal numbers to binary:
o a) 75
o b) 127
1/2
o c) 361
8. Convert the following binary numbers to octal:
o a) 101101
o b) 1110001
o c) 10001110
🧮 Mixed and Word Problems
9. A digital system receives an input in hexadecimal format. Convert the input
1F3A to:
o a) Binary
o b) Decimal
o c) Octal
[Link] a number is represented in binary as 11010110, show its equivalent in:
a) Octal
b) Decimal
c) Hexadecimal
[Link] a short algorithm (or write pseudocode) to convert a binary number
to decimal.
[Link] why hexadecimal is often used in computing instead of binary.
XXXXX END XXXXX
2/2