0% found this document useful (0 votes)
11 views5 pages

Data Representation

Uploaded by

perispeters
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views5 pages

Data Representation

Uploaded by

perispeters
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

DATA REPRESENTATION

KCSE 2007

8. Using six bits, find the two’s complement of -2310. (4 mks)


KCSE 2009
20 (a) perform the following binary arithmetic and give your answer in decimal notation:

(i) 1010.101 + 11.011 (3 marks)


………………………………………………………………………………………………………
………………………………………………………………………………………………………
……………………………………………………………………………………………………….
……………………………………………………………………………………………………….
(ii) 1010.011 – 11.011 (3 marks)
………………………………………………………………………………………………………
………………………………………………………………………………………………………
……………………………………………………………………………………………………….
……………………………………………………………………………………………………….
(b) convert the following numbers into binary equivalents:

(i) 0.562510 (3 marks)


………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………

(ii) 0.312510 (3marks)


………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
(c) Using four-bit two’s complement, perform the following arithmetic
(3 marks)
./
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
…………………………………………………………………………………………………………......

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)

……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………

(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
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
KCSE 2011
17 (a) State three standard data coding schemes used in computing and electronic systems. (3 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
…………………………………………………………………………………………………………......
(b) Convert each of the following numbers:
(i) 110.1012 to decimal; (3 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
…………………………………………………………………………………………………………….
(ii) 12.687510 to binary; (4 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………..
(c) Subtract 110.012 from 11001.01012 (2 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
…………………………………………………………………………………………………………
(d) Using two’s complement, perform the binary arithmetic below and leave your answer in binary
notation (3 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………..
KCSE 2013
20 (a) (i) Differentiate between one’s complement and two’s complement in data representation.
(2 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
…………………………………………………………………………………………………………….
(ii) Explain the preference of binary number systems over decimal number systems in computers.
(2 marks)
……………………………………………………………………………………………………………..
.
……………………………………………………………………………………………………………..
.……………………………………………………………………………………………………………
(b) (i) Using one’s complement, subtract 1000112 from 010010. (4 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
…………………………………………………………………………………………………………
(ii) Convert the number21.0312510 to its binary equivalent. (5 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
(c) Perform the following binary operations. (2 marks)
1101 + 11011 + 101 + 11111

……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
…………………………………………………………………………………………………………….

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:

(i) signed magnitude representation; (2 marks)


……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
…………………………………………………………………………………………………………….
(i) two’s complement. (2 marks).
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………..
(d) Perform the arithmetic operation.
110.112 + 11.0112 (2 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
…………………………………………………………………………………………………………….
KCSE 2015
17 (a) (i) In the BCD number coding scheme, letter A is represented dy 110001 and letter B by
110010.
Determine how the word CAB is recorded in BCD. (2 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
(ii) Convert the decimal number 11.125 to its binary number equivalent. (3 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………..
(iii) Perform the binary arithmetic:
111.01 + 1011.111 – 101.011
And convert the answer to decimal notation. (3 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
(b) Explain the importance of each of the following in word processing:
(i) tab stops; (2 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
(ii) section breaks. (2 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………..............
(c) State three documents that are used during mail merging in word processing. (3 marks)
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………..

You might also like