You are on page 1of 2

Tutorial 1

Number System and Codes

Question 1
a)
Define digital.
b)
Give three advantages of binary system as compared to analog system.
c)
Define binary.
d)
What does bit mean?
e)
What are the bits in a binary system?
f)
Explain how voltage levels in TTL are interpreted by a digital circuit.
g)
Explain what is a timing diagram and its purpose.
Question 2
a)
What is the largest decimal number that can be represented in binary with: i) two bits? ii) three bits? iii) four bits?
iv) eight bits?
b)
What is 100 in binary?
c)
How many bits required to represent 3019?
d)
What is the decimal equivalent of 111111112?
e)
Determine the weight of the 1 in the binary number 10000.
Question 3
Convert the following numbers:
a)
1011100.1010112 to decimal, octal and hexadecimal number
b)
FB17.12316 to binary, octal and decimal number
c)
13271.4338 to binary, decimal and hexadecimal number
Question 4
(the H sign indicate a hex. number)
a)
Add the hexadecimal numbers directly (i) 18H + 34H (ii) 3FH + 2AH
b)
Subtract the hexadecimal number (i) 75H 21H (ii) 94H - 5CH
c)
Convert the following numbers to BCD: (i) 6 (ii) 15 (iii) 273 (iv) 849
Question 5
a)
Add the binary numbers (i) 1001 + 101
(ii) 1101 + 1011
b)
Use direct subtraction on the following binary numbers:
(i) 1100 1001
(ii) 11010 10111
c)
Determine the 1s complement of each binary number (i) 11010111
d)
Determine the 2s complement of each binary number (i) 11010111
e)
What is the use of using complement numbers?

(ii) 1110101
(ii) 1110101

Question 6
a)
Perform the following arithmetic operations using 8-bit 2s complement format: i)
678 - 1516
ii)7116 - 1016
iii)708 10010111BCD
iv)-278 - 2716

NumberSystem&Codes / page 1 of 2

Question 7
a)
What is meant by unweighted codes?
b)
Convert 101100112 to Gray code.
c)
Convert 11000111 (Gray code) into binary.
d)
Convert 3416 into i) Gray Code ii) BCD
Question 8
a)
Using common cathode 7-segment display unit, find the binary code to display the
following numbers: -0, 3, 5, 8, 9.
b)
Using common anode 7-segment display unit, find the binary code to display the
following numbers: -1, 2, 4, 6, 7.
Question 9
a)
What is meant by parity?
b)
If even parity is used, what is the parity bit for the following binary numbers?
i) 10011001
ii)11010011
iii)00101000
iv)11000000
c)
If even odd is used, what is the parity bit for the following binary numbers?
i)10011001
ii)11010011
iii)00101000
iv)11000000

NumberSystem&Codes / page 2 of 2

You might also like