Data Representation
Data Representation
KCSE 2007
KCSE 2010
(20) (a) Using one’s complement, convert the decimal number -9 into a 6-bit binary number.
(3 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
(b) (i) State three standard coding schemes used in data representation. (3 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
(ii) In a certain coding scheme, each character occupies 7 bits.
Letters of the alphabet are assigned consecutive codes.
If letter N is represented by 1010010;
What is the representation of letter A in this coding scheme? (3 marks)
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
……………………………………………………………………………………………………….
(c) using two’s complement, show how the arithmetic below would be carried out on a 8-bit
computer system. (6 marks)
(+54)-(+29)
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
……………………………………………………………………………………………………….
……………………………………………………………………………………………………….
KCSE 2012
17 (a) convert each of the following binary numbers to decimal equivalent given that the left most
Digit is a sign bit.
(i) 00101101 (2 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
…………………………………………………………………………………………………………….
KCSE 2014
20 (a) Describe the octal number system. (2 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
………………………………………………………………………………………………………….....
(b) Convert each of the following to the number system indicated:
(i) 111.1012 to decimal; (3 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
………………………………………………………….…………………………………………………
(ii) 14.687510 to binary; (4 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………..
(c) Convert the number -1710 into 8-bit: