319 views
6 votes
6 votes
Which of the following $32-bit$ bits stream correctly represents the maximum possible normalized value represented in IEEE-754 single-precision representation?
  1. $\underbrace{0}_{\text{sign}}\underbrace{11111111}_{\text{exponent}}\underbrace{11111111111111111111111}_{\text{mantissa}}$
  2. $\underbrace{0}_{\text{sign}}\underbrace{11111111}_{\text{exponent}}\underbrace{11111111111111111111110}_{\text{mantissa}}$
  3. $\underbrace{0}_{\text{sign}}\underbrace{11111110}_{\text{exponent}}\underbrace{11111111111111111111110}_{\text{mantissa}}$
  4. $\underbrace{0}_{\text{sign}}\underbrace{11111110}_{\text{exponent}}\underbrace{11111111111111111111111}_{\text{mantissa}}$

1 Answer

Best answer
7 votes
7 votes
For normalized value in IEEE-754 representation the exponent field cannot be all $1s.$ So, to get the maximum exponent we should make the exponent field $1111110$ which equals $254$ but with a bias of $127$ (used to have negative exponent in IEEE-754 representation), this equals $127.$
    
    Sign bit must be $0$ to make the number positive.
    
    Mantissa bits must be all $1s$ to maximize the number so that the represented number equals $1.\underbrace{111..1}_{\text{23 1s}} = 1+ (1 - 2^{-23}) = 2 - 2^{-23}.$
    
    So, correct option is D and the represented value $ = (2 - 2^{-23}) \times 2^{127}$
selected by
Answer:

Related questions

7 votes
7 votes
1 answer
1
gatecse asked Jul 19, 2020
581 views
Which of the following decimal number does not cause a loss of precision when represented in IEEE-754 single precision representation?$4096 \times 4096 \times 4096$$24824...
1 votes
1 votes
1 answer
4
gatecse asked Jul 19, 2020
221 views
The IEEE-754 single precision floating point representation (in hexadecimal format) for the decimal number $16.125$ is?$\texttt{0x41810000}$$\texttt{0x02010000}$$\texttt{...