Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
FACULTY OF ENGINEERING
DURATION: 60 MINUTES
REQUIREMENTS:
Calculator may be used.
INSTRUCTIONS:
1. Answer all questions
2. Clearly write your student number in the space provided on the answer sheet.
3. If necessary, use your answer sheet to complete your rough work.
4. Hint: The time spent to answer a question must be in accordance with the
marks.
Page 1 of 4
SECTION A_______________________________________________________ [20 MARKS]
Multiple choice questions – Each question in this section carries 2 Marks.
Select the correct option (a, b, c or d) when answering the following questions.
Write all the necessary calculations in the answering work book.
When answering, write both the correct option and answer in full.
Page 2 of 4
6. The 2’s complement of the number 011101002 is
a) 100010112
b) 100011002
c) 011100112
d) 111101002
7. Which of the following statements is false?
a) The output of a logic function ‘AND’ is LOW when one input is LOW.
b) The output of a logic function ‘AND’ is HIGH when at least one input is HIGH.
c) The output of a logic function ‘OR’ is LOW when all inputs are LOW.
d) The output of a logic function ‘NOT’ is LOW when the input is HIGH.
8. Which of the following statements is false?
a) ASCII code is used to represent alphanumeric characters in binary form.
b) There is only a single bit change between two consecutive Gray code words.
c) A BCD code for the number 1010 has more than 4-bits.
d) ASCII code encodes more characters than Unicode.
9. In an even parity system, the parity bit assigned to the binary code “1010110” is
a) 2
b) 1
c) 0
d) Either of b) or c).
10. The decimal number 89 can be represented by;
a) 2-bits.
b) At most 3 bits.
c) No less than 7 bits.
d) Both a) and b).
Page 3 of 4
SECTION B_______________________________________________________ [20 MARKS]
3. Calculate the following. Give your answers in base 16; AC16 + 5716 (4 Marks)
1. Calculate the sum 1101001(BCD) + 101(BCD) and give your answer in BCD format.(3 Marks)
2. Convert the number 35.45610 into binary equivalent with 5 decimal places. (8 Marks)
3. Convert the code 10101111(GRAY) to binary (base-2) (4 Marks)
4. Calculate the following sum and give your answer in octal form (base-8); 2548+DA16.
(6 Marks)
5. Briefly state one key difference between the Cyclic redundancy check (CRC) and
Hamming code methods. (2 Marks)
Page 4 of 4