You are on page 1of 3

CPS213 – COMPUTER ORGANIZATION I, LAB 0

BINARY CONVERSION

This is an exercise in number base conversion and binary systems. All students
are required to answer the questions individually and hand in their written
answers to their TA. The TA may return the paper after recording the mark.

1.1. List the binary and hexadecimal numbers from 0 to 25.

1.2. What is the largest unsigned binary number that can be expressed with 2
bytes?

1.3. Convert the hexadecimal number A0F9 to octal.


i.e. A0F9)16 = X)8 and solve for X.

1.4. Convert the binary number 101110010 to hexadecimal.


i.e. 101110010)2 = X)16 solve for X.

1.5. Determine the base of the numbers in each case for the following operations
to be correct:

(a) 24)A + 17)A = 40)A

(b) 14)A / 2)A = 5)A

1.6. Convert the number 8702)9 to base 3.


i.e. 8702)9 = X)3 and solve for X.

1.7. Convert the following numbers (which are not in base 10) into their base 10
equivalent. Write each with the intermediate step of the following expansion. You
must show the expansion as well as the final answer. For example:

(4563)7 = 4x73 + 5x72 + 6x71 + 3x70 = 1662)10 (write the rest like this)

(2102211)3 = ? = ?)10

(56723)8 = ? = ?)10
(1265)7 = ? = ?)10

(8706)9 = ? = ?)10

(A0B1)16 = ? = ?)10

1.9. Now do the reverse operation on the numbers below. Convert the following
base 10 numbers into the desired base. Write each with the intermediate
step of the following expansion. You must show the expansion as well as the
final answer. For example:

1746) 10 to X)4

Answer: 1746) 10 = 1x45 + 2x44 + 3x43 + 1x42 + 0x41 + 2x40 = 123102)4


(write the rest like this)

(99)10 = ? = ?)3

(1234) 10 = ? = ?)5

(1234) 10 = ? = ?)6

(1234) 10 = ? = ?)7

(1234) 10 = ? = ?)8

(1234) 10 = ? = ?)9

(1234) 10 = ? = ?)16

1.10. Convert the following binary numbers to hexadecimal.

(0110 1100 1001 0001)2 = 6C91)16 (example, write the rest like this)

(0011 1010 1111 1110) 2 =

(1010 1101 1011 1011) 2 =

(0000 0000 1111 1111) 2 =

(1010 0101 1110 0011) 2 =

(0110 0111 0010 0000) 2 =

2/3
(0110 1001) 2 =

(1010 0111) 2 =

(0000 0000) 2 =

(1111 1111) 2 =

(0111 0101) 2 =

1.11. Convert the following hexadecimal to binary numbers.


6C91)16 = (0110 1100 1001 0001) 2 (example, write the rest like this)

7A01)16 = (?)2

1248)16 = (?)2

CCA9)16 = (?)2

ACDC)16 = (?)2

BAD1)16 = (?)2

FFFF)16 = (?)2

5A5A)16 = (?)2

0000)16 = (?)2

00)16 = (?)2

FF)16 = (?)2

11)16 = (?)2

7C)16 = (?)2

A1)16 = (?)2

8F)16 = (?)2

3/3

You might also like