(a) ABI to octal
A=1010 B=1011 1=0001 -------- Step 1
= 101010110001
= 101=5 010=2 110=6 001=1 ---------- Step 2
=5261 ------ Step 3
= AB1
= Ax16 + Bx16 + 1x16
= 10 X 16 + 11 X 16 + 1 X 16
= 2560 + 176 + 1
= 2737
It has to be converted to octal
8 | 2737 | |
8 | 342 | R1 |
8 | 42 | R6 |
8 | 5 | R2 |
| 0 | R5 |
= 5261
(b) 1110111.101 to Denary
64=1 32=1 16=1 8=0 4=1 2=1 1=1
64+32+16+0+4+2+1
=96+16+7
=96+23
=119
2nd step fractional part
-1 -2 -3
.1 0 1
=1x2 + 0x2 + 1x2
= + +
= + 0 +
=
= 0.625
: 1110111.101 = 119.625
(c) 507 to Binary
5=101 0=000 9=111
=101000111
OR
507 to decimal
=5x8 + 0x8 + 7x8
= 5x64+0+7
=327
Conversion to binary
327 to binary
2 | 327 | |
2 | 163 | R1 |
2 | 81 | R1 |
2 | 40 | R1 |
2 | 20 | R0 |
2 | 10 | R0 |
2 | 5 | R0 |
2 | 2 | R1 |
2 | 1 | R0 |
| 0 | R1 |
=101000111