You are on page 1of 4

Laboratory Exercise 001- Practice Laboratory 001

ANSWERS:

1.) Covert 11011101(binary) to base 10, 8 and 16

-base 10

128 64 32 16 8 4 2 1 1x1= 1

1 1 0 1 1 1 0 1 1x4= 4

^ ^ ^ ^ ^ ^ 1x8= 8

1 x 16 = 16

1 x 64 = 64

1 x 128 =128

221 = base 10 < answer

-base 8

| |

0 1 1 | 0 1 1 | 1 0 1

4 2 1 | 4 2 1 | 4 2 1

| |

1x2=2 1x2=2 1x4=4

1x1=1 1x1=1 1x1=1

2+1=3 2+1=3 4+1=5

= 335 base 8 < answer

-base 16

1 1 0 1 | 1 1 0 1

8 4 2 1 | 8 4 2 1

|
1x8=8 1x8=8

1x4=4 1x4=4

1x1=1 1x1=1

8 + 4 + 1 = 13 = D 8 + 4 + 1 = 13 = D

= DD base 16 < answer

2.) Covert 25 (decimal to base 2, 8 and 16

-base 2

25 / 2 = 12.5 R1 ^ ANSWER = 11001

12 / 2 = 6 R0 |

6 /2=3 R0 |

3 / 2 = 1.5 R1 |

1 / 2 = 0.5 = 0 R1 |

BOT TO TOP

-base 8

25 / 8 = 3

3 * 8 = 24

25 - 24 = 1 R1 LSB

3 / 8 = 0.375 3 - 0 = R3 MSB

ANSWER = 31 base of 8

-base 16

25 / 16 = 1

1 * 16 = 16

25 - 16 = R9
1 / 16 = 0.0625

1 - 0 = R1

ANSWER = 19 base of 16

3.) Convert 70 (octal) to base 2, 10 to 16

-base 2

given

7 0

421 is the sum of 7 421

111 000

therfore 70 base 8 is = to 111000 base 2 <ANSWER

-base 10

7 x 8 to the 1st power + 0 x 8 to the 0 ppower

56 + 0 = 56 base 10 < ANSWER

-base 16

convert given octal number to binary

7 0

421 is the sum of 7 421

111 000

8 4 2 1| 8 4 2 1

0 0 1 1| 1 0 0 0

3 8

=38 base 16 <ANSWER


4.) Convert CD1(hex) to base 2, 10 and 8

-base 2

C D 1

8421 8421 8421

1100 1101 0001

therefore 110011010001 base 2 < ANSWER

-base 10

CD1

C x 16 to the 2nd power + D x 16 to the 1st power + 1 x 16 to the 0 power

12x256 + 13x16 + 1x1 = 3281 base of 10 <ANSWER

-base 8

convert given hex number to binary

C D 1

12 13

1100 1101 0001

so CD1 in binary is 110011010001

group to 3 starting to the right

4 2 1 | 4 2 1 | 4 2 1 | 4 2 1

1 1 0 | 0 1 1 | 0 1 0 | 0 0 1

6 3 2 1

= 6321 base 8 <ANSWER

You might also like