You are on page 1of 2

Assignment 1: Binary and Hexadecimal Integers

Full in name: Tô Thành Hậu


ID student: 22110319
1. Write each of the following decimal numbers in binary:
a. 2 = 102 g. 15 = 11112
b. 7 = 1112 h. 16 = 100002
c. 5 = 1012 i. 20 = 101002
d. 8 = 10002 j. 27= 110112
e. 9 = 10012 k. 32= 1000002
f. 12 = 11002 l. 64= 10000002

2. Write each of the following binary numbers in decimal:


a. 00000101 = 510 g.00110000 = 4810
b. 00001111 = 1510 h.00100111 = 3910
c. 00010000 = 1610 i.01000000 = 6410
d. 00010110 = 2210 j.01100011 = 9910
e. 00001011 = 1110 k.10100000 = 16010
f. 00011100 = 2810 l.10101010 = 17010

3. Write each of the following binary numbers in hexadecimal:


a. 00000101 = 516 g.00110000 = 3016
b. 00001111 = F16 h.00100111 = 2716
c. 00010000 = 1016 i.01001000 = 4816
d. 00010110 = 1616 j.01100011 = 6316
e. 00001011 = B16 k.10100000 = A016
f. 00011100 = 1C16 l.10101011 = AB16

4. Write each of the following hexadecimal numbers in binary:


a. 0005h = 1012 g. 0030h = 1100002
b. 000Fh = 11112 h. 0027h = 1001112
c. 0010h = 100002 i. 0048h = 10010002
d. 0016h = 101102 j. 0063h = 11000112
e. 000Bh = 10112 k. A064h = 10100000011001002
f. 001Ch = 111002 l. ABDEh = 10101011110111102

5. Write each of the following hexadecimal numbers in decimal:


a. 00D5h = 21310 g. 0B30h = 286410
b. 002Fh = 4710 h. 06DFh = 175910
c. 0110h = 27210 i. 1AB6h = 683810
d. 0216h = 53410 j. 0A63h = 265910
e. 004Bh = 7510 k. 02A0h = 67210
f. 041Ch = 105210 l. 1FABh = 810710

You might also like