Tutorial 1 Number System and Computer Codes - 2016
Tutorial 1 Number System and Computer Codes - 2016
Codes
1. Convert each of the following decimal numbers to binary, octal and hexadecimal numbers:
a. 27
b. 915
c. 174.25
2. Convert each of the following octal numbers to hexadecimal and decimal numbers using the
most appropriate conversion method:
a. 65
b. 111111
3. 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
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.