Data Representation — Question 9
Back to all questionsQuestion 9
Convert the following binary numbers to hexadecimal and octal :
(a) 10011011101
(b) 1111011101011011
(c) 11010111010111
(d) 1010110110111
(e) 10110111011011
(f) 1111101110101111
(a) 10011011101
Converting to hexadecimal:
Grouping in bits of 4:
| Binary Number | Equivalent Hexadecimal |
|---|---|
| 1101 | D (13) |
| 1101 | D (13) |
| 0100 | 4 |
Therefore, (10011011101)2 = (4DD)16
Converting to Octal:
Grouping in bits of 3:
| Binary Number | Equivalent Octal |
|---|---|
| 101 | 5 |
| 011 | 3 |
| 011 | 3 |
| 010 | 2 |
Therefore, (10011011101)2 = (2335)8
(b) 1111011101011011
Converting to hexadecimal:
Grouping in bits of 4:
| Binary Number | Equivalent Hexadecimal |
|---|---|
| 1011 | B (11) |
| 0101 | 5 |
| 0111 | 7 |
| 1111 | F (15) |
Therefore, (1111011101011011)2 = (F75B)16
Converting to Octal:
Grouping in bits of 3:
| Binary Number | Equivalent Octal |
|---|---|
| 011 | 3 |
| 011 | 3 |
| 101 | 5 |
| 011 | 3 |
| 111 | 7 |
| 001 | 1 |
Therefore, (1111011101011011)2 = (173533)8
(c) 11010111010111
Converting to hexadecimal:
Grouping in bits of 4:
| Binary Number | Equivalent Hexadecimal |
|---|---|
| 0111 | 7 |
| 1101 | D (13) |
| 0101 | 5 |
| 0011 | 3 |
Therefore, (11010111010111)2 = (35D7)16
Converting to Octal:
Grouping in bits of 3:
| Binary Number | Equivalent Octal |
|---|---|
| 111 | 7 |
| 010 | 2 |
| 111 | 7 |
| 010 | 2 |
| 011 | 3 |
Therefore, (11010111010111)2 = (32727)8
(d) 1010110110111
Converting to hexadecimal:
Grouping in bits of 4:
| Binary Number | Equivalent Hexadecimal |
|---|---|
| 0111 | 7 |
| 1011 | B (11) |
| 0101 | 5 |
| 0001 | 1 |
Therefore, (1010110110111)2 = (15B7)16
Converting to Octal:
Grouping in bits of 3:
| Binary Number | Equivalent Octal |
|---|---|
| 111 | 7 |
| 110 | 6 |
| 110 | 6 |
| 010 | 2 |
| 001 | 1 |
Therefore, (1010110110111)2 = (12667)8
(e) 10110111011011
Converting to hexadecimal:
Grouping in bits of 4:
| Binary Number | Equivalent Hexadecimal |
|---|---|
| 1011 | B (11) |
| 1101 | D (13) |
| 1101 | D (13) |
| 0010 | 2 |
Therefore, (10110111011011)2 = (2DDB)16
Converting to Octal:
Grouping in bits of 3:
| Binary Number | Equivalent Octal |
|---|---|
| 011 | 3 |
| 011 | 3 |
| 111 | 7 |
| 110 | 6 |
| 010 | 2 |
Therefore, (10110111011011)2 = (26733)8
(f) 1111101110101111
Converting to hexadecimal:
Grouping in bits of 4:
| Binary Number | Equivalent Hexadecimal |
|---|---|
| 1111 | F (15) |
| 1010 | A (10) |
| 1011 | B (11) |
| 1111 | F (15) |
Therefore, (1111101110101111)2 = (FBAF)16
Converting to Octal:
Grouping in bits of 3:
| Binary Number | Equivalent Octal |
|---|---|
| 111 | 7 |
| 101 | 5 |
| 110 | 6 |
| 101 | 5 |
| 111 | 7 |
| 001 | 1 |
Therefore, (1111101110101111)2 = (175657)8