Skip to content
Official PYQ · 1987

GATE CS 1987 Q1-vii — Number Representations (Fixed and Floating Point)

Explain with AI

The exponent of a floating-point number is represented in excess-N\text{N} code so that:

Choose one option
View worked solution

Answer: C

In floating-point representation, the exponent is stored using biased representation (also known as excess-NN code), where a bias NN is added to the actual exponent EE to get the stored exponent E′=E+NE' = E + N.

This encoding serves two main purposes:

  1. Simplifies Comparison: It shifts the range of exponents from both negative and positive values to strictly non-negative values. This allows standard integer comparators to compare floating-point numbers directly without needing signed comparison logic.
  2. Representation of Smallest Numbers: The most negative exponent (which represents the smallest non-zero magnitude) maps to a stored exponent of 00. Consequently, the smallest numbers (including zero itself) are represented with all zeros in the exponent field.

Analysis of Options:

  • Option A (Incorrect): The dynamic range is determined by the number of bits allocated to the exponent, not the encoding scheme.
  • Option B (Incorrect): The precision is determined by the number of bits allocated to the mantissa (significand).
  • Option C (Correct): The smallest exponent value corresponds to a stored value of 00, represented as all zeros.
  • Option D (Incorrect): Overflow is a consequence of exceeding the maximum representable limit and cannot be avoided merely by changing the encoding scheme.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Number Representations (Fixed and Floating Point) questions