Quiz Chapter 01.05: Floating Point Representation of Numbers

MULTIPLE CHOICE TEST

(All Tests)

FLOATING POINT REP

(More on Floating Point Representation)

INTRO TO SCIENTIFIC COMPUTING

(More on Scientific Computing)


Pick the most appropriate answer


1. A hypothetical computer stores real numbers in floating point format in 8-bit words. The first bit is used for the sign of the number, the second bit for the sign of the exponent, the next two bits for the magnitude of the exponent, and the next four bits for the magnitude of the mantissa. Represent e \approx 2.718 in the 8-bit format.

 
 
 
 

2. A hypothetical computer stores real numbers in floating point format in 8-bit words.  The first bit is used for the sign of the number, the second bit for the sign of the exponent, the next two bits for the magnitude of the exponent, and the next four bits for the magnitude of the mantissa.  The base-10 number that \left(10100111\right)_{2} represents the above given 8-bit format is

 
 
 
 

3. A hypothetical computer stores floating point numbers in 8-bit words.  The first bit is used for the sign of the number, the second bit for the sign of the exponent, the next two bits for the magnitude of the exponent, and the next four bits for the magnitude of the mantissa.  The machine epsilon is most nearly

 
 
 
 

4. A machine stores floating point numbers in 7-bit word.  The first bit is used for the sign of the number, the next three for the biased exponent and the next three for the magnitude of the mantissa.  The number \left(0010110\right)_{2}represented in base-10 is

 
 
 
 

5. A machine stores floating point numbers in 7-bit words.  The first bit is stored for the sign of the number, the next three for the biased exponent and the next three for the magnitude of the mantissa.  You are asked to represent 33.35 in the above word.  The error you will get in this case would be

 
 
 
 

6. A hypothetical computer stores floating point numbers in 9-bit words.  The first bit is used for the sign of the number, the second bit for the sign of the exponent, the next three bits for the magnitude of the exponent, and the next four bits for the magnitude of the mantissa.  Every second, the error between 0.1 and its binary representation in the 9-bit word is accumulated.  The accumulated error after one day most nearly is