0% found this document useful (0 votes)
48 views

Tutorial 1 Number System and Computer Codes - 2016

The document provides a tutorial on number systems and computer codes. It contains 10 questions that involve converting between decimal, binary, octal, and hexadecimal number systems. It also involves calculating arithmetic operations on numbers in different bases. Additional questions involve 2's complement, binary coded decimal, grey code, and ASCII encoding of character strings.

Uploaded by

Aisyatul Humaira
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Tutorial 1 Number System and Computer Codes - 2016

The document provides a tutorial on number systems and computer codes. It contains 10 questions that involve converting between decimal, binary, octal, and hexadecimal number systems. It also involves calculating arithmetic operations on numbers in different bases. Additional questions involve 2's complement, binary coded decimal, grey code, and ASCII encoding of character strings.

Uploaded by

Aisyatul Humaira
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Tutorial 1 : Number System & Computer

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

4. 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

5. Calculate A + B, A B, A x B, and A B for the following pairs of octal numbers:


a. 372, 156
b. 1000, 777

6. Calculate A + B, A B, A x B, and A B for the following pairs of hexadecimal numbers:


a. 2CF3, 2B
b. 9A5, D17

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