Difference between revisions of "CSC231 Final Exam 2015"

From dftwiki3
Jump to: navigation, search
Line 77: Line 77:
 
<br />
 
<br />
 
* Submit a pdf with your answers in the Final Exam PB 2 section, on Moodle.  Make sure you write your name at the top of the file!
 
* Submit a pdf with your answers in the Final Exam PB 2 section, on Moodle.  Make sure you write your name at the top of the file!
 +
<br />
 +
=Problem #3=
 +
<br />
 +
Assume that we want to create a 16-bit version of the IEEE floating point format, with 1 sign bit, 7 bits for the exponent, and 8 bits of mantissa (1+7+8 = 16).
  
 +
We want to follow the same rules IEEE used to define the 32-bit and 64-bit formats.
 +
 +
;Questions:
 +
: what is the smallest normalized positive non-zero number we can represent with the new 16-bit format?
 +
: what is the largest normalized positive non-infinite number we can represent?
 +
: what is the smallest denormalized positive non-zero number we can represent?
 +
: what binary or hex values represent + infinity,  - infinity, and  NaN?
 +
: what is the bias of the exponent?
 +
 +
Store your answers in a pdf, with your name at the top, and submit it to the Final PB 3 Section on Moodle.
 +
<br />
 
</onlydft>
 
</onlydft>

Revision as of 09:59, 12 December 2015


...