You are on page 1of 2

Tutorial 2 : Number System &

Computer Codes
1. Calculate A + B, A B, A x B, and A B for the following pairs of binary
numbers:
a. 10101 , 1011
b. 1011.0101, 110.11
c. 101, 1011
2. Calculate A + B, A B, A x B, and A B for the following pairs of octal
numbers:
a. 372, 156
b. 1000, 777
3. Calculate A + B, A B, A x B, and A B for the following pairs of hexadecimal
numbers:
a. 2CF3, 2B
b. 9A5, D17
4. Convert each of the following decimal numbers to binary, octal and
hexadecimal numbers:
a. 27
b. 915
c. 174.25
5. Convert each of the following binary numbers to hexadecimal and decimal
numbers using the most appropriate conversion method:
a. 65
b. 111111
6. Convert each of the following hexadecimal numbers to binary and decimal
numbers using the most appropriate conversion method:
a. ABC
b. F8.A7
7. Find the 2s complement of each of the following binary numbers assuming
n=8:
a. 101010
b. 11111111
c. 1010011
8. Calculate A + B, A B, -A + B, and A B for each of the following pairs of
numbers assuming a 2s complement number system and n=8. Check your
results by decimal arithmetic. Explain any unusual results.
a. 1010101, 1010
b. 1101011, 0101010,

c. 11101010, 101111
d. 10000000, 01111111
9. Encode the following numbers in BCD and Grey code:
a. 39
b. 1950
c. 94704
10.Encode each of the following character strings in ASCII code. Represent the
encoded strings by hexadecimal numbers:
a. 1980
b. A = b + C
c. COMPUTER ENGINEERING
d. The End.

You might also like