Vac DataRepresentation
Vac DataRepresentation
Vac DataRepresentation
1. (a) The ASCII code for the letter N is 01001110. Show how this will be represented in
(i) denary (ii) hexadecimal [4]
(b) What is (i) the largest negative number (ii) the largest positive number that can be held in 8 bits,
assuming the left most bit is a sign bit? [4]
2. a) State two different possible interpretations of a given bit pattern in a computer’s memory. [2]
b) Covert the following hexadecimal number: 1 2 A E 5 to its decimal equivalent. Show the
calculations. [2]
c) (i) Given that the ASCII code for the character ‘1’ is 00110001, show how the text string ‘1332’
would be held in a 4-byte word in a computer’s memory. [2]
d) Bit patterns can be interpreted in a number of different ways. A computer word contains the bit
pattern 00110110.
i) What is its decimal value if it represents a pure binary integer? [2]
ii) What is its decimal value if it represents a Binary Coded Decimal (BCD)? [2]
e) Using an 8-bit byte for the mantissa and an 8-bit byte for the exponent, show -75 /4 as a 2 byte,
3
1. (a) The ASCII code for the letter N is 01001110. Show how this will be represented in
(i) denary (ii) hexadecimal [4]
(b) What is (i) the largest negative number (ii) the largest positive number that can be held in 8 bits,
assuming the left most bit is a sign bit? [4]
2. a) State two different possible interpretations of a given bit pattern in a computer’s memory. [2]
b) Covert the following hexadecimal number: 1 2 A E 5 to its decimal equivalent. Show the
calculations. [2]
c) (i) Given that the ASCII code for the character ‘1’ is 00110001, show how the text string ‘1332’
would be held in a 4-byte word in a computer’s memory. [2]
d) Bit patterns can be interpreted in a number of different ways. A computer word contains the bit
pattern 00110110.
i) What is its decimal value if it represents a pure binary integer? [2]
ii) What is its decimal value if it represents a Binary Coded Decimal (BCD)? [2]
e) Using an 8-bit byte for the mantissa and an 8-bit byte for the exponent, show -75 3/4 as a 2 byte,
normalised floating point number. [4]
2. a) Using 12 bits for the Mantissa and 4 bits for the Exponent, write the normalised floating-point
representation of the following unsigned binary number using this system. 1011100.011001 [4]
b) Given that a computer’s register uses 10 bits for the mantissa and 6 bits for the exponent
(i) Normalised the floating point number 1111100100 000011 [4]
(ii) Convert the floating point number 0101000000 111111 [4]