Data Represention in Computers Kcse 2010 2023
Data Represention in Computers Kcse 2010 2023
Page 1 of 4
(a) Using one’s complement, convert the decimal number -9 into 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)
(iii) Using twos complement, show how the arithmetic below would be carried out on an 8-bit
computer system. (6 marks)
(+54)- (+29)
i. 00101101 (2 marks)
ii. 11001001 (2 marks)
b. Convert the decimal number 0.42 to 6 bit binary notation. (4 marks)
c. Using two's complement, subtract 1110 from 810 leaving your answer in binary
notation. (5 marks)
d. Perform the following binary operation. (2 marks)
11001 + 1101 – 101
Page 2 of 4
a. Nibbles (1mark)
b. Bytes (1mark)
a.
i. In the BCD number coding scheme, letter A is represented by 110001 and letter B
by 110010. Determine how the word CAB is coded in BCD. (2 marks)
ii. Convert the decimal number 11.125 to its binary number system equivalent. (3
marks)
iii. Perform the binary arithmetic: 111.01 + 1011.111 - 101.011 and convert the
answer to decimal notation. (3 marks)
Page 3 of 4
6. Convert each of the following binary numbers to decimal equivalent given that the left
most digit is a sign bit:
(a) 00101101 (2marks)
(b) 11001001 (2marks)
18b (i) describe two ways in which a positive number and a negative number can be represented
in a computer (2 marks)
ii) A particular computer stores numbers in a single 8-bit word.
Determine how the number 0.312510 would be represented. (3 marks)
(c) (i) Convert the number 11101.11 2 to its decimal equivalent. (3 marks)
i. BCD ;( 1 mark)
ii. EBCDIC ;( 1 mark)
iii. ASCII. (1 mark)
(c) Using 10 bits binary number system, perform the following decimal operation
using two’s complement (6 marks)
129 10 - 128 10
19c. using two's complement notation, determine the value of the operation
25 10 -29 10 (6Marks)
10. Convert the decimal number 9.2510 to its binary number equivalent. (3 marks)
18(b) Convert the binary number 1101.0112 to its decimal number equivalent (3Marks)
Page 4 of 4
a) Distinguish between octal number system and binary number system. (4 marks)
b) Subtract 1710 from 2310 using 8-bits one's complement leaving the answer in binary
notation. (4 marks)
a. With the aid of an example in each case, state one difference between a nibble and
a byte as used in computer data representation. (3 marks)
b.
i. Convert the binary number 11101.1012 to its decimal number
equivalent. ( 3 marks)
ii. Perform the following binary arithmetic operation using two's
complement. 11102 − 10012 (2 marks)
c. State two differences between BCD and EBCDIC as used in computer coding
scheme. ( 4 marks)
3. Convert the decimal number 20.373 10 to its binary number system equivalent.
(2marks)
19(b) (i) Convert the decimal number 70.2510 to binary number system equivalent (4Marks)