0% found this document useful (0 votes)
50 views1 page

Vac DataRepresentation

The document provides instructions for an open book assignment on data representation. Candidates are asked to show the denary and hexadecimal representation of the ASCII code for N, and to calculate the largest positive and negative numbers for an 8-bit binary number. They are also asked to interpret bit patterns as integers or BCD, represent floating point numbers using different bit allocations for mantissa and exponent, and convert between binary, hexadecimal and decimal numbers.

Uploaded by

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

Vac DataRepresentation

The document provides instructions for an open book assignment on data representation. Candidates are asked to show the denary and hexadecimal representation of the ASCII code for N, and to calculate the largest positive and negative numbers for an 8-bit binary number. They are also asked to interpret bit patterns as integers or BCD, represent floating point numbers using different bit allocations for mantissa and exponent, and convert between binary, hexadecimal and decimal numbers.

Uploaded by

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

DATA REPRESENTATION: OPEN BOOK ASSIGNMENT

Instructions for candidates:


Write the assignment in your Test and exercise book.

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

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]

DATA REPRESENTATION: OPEN BOOK ASSIGNMENT


Instructions for candidates
Write the assignment in your Test and exercise book.

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]

You might also like