but how does this explanation make option (C) correct?

The Gateway to Computer Science Excellence

First time here? Checkout the FAQ!

x

+9 votes

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

- The dynamic range is large.
- The precision is high.
- The smallest number is represented by all zeros.
- Overflow is avoided.

+11 votes

Best answer

Ans : C) The smallest number is represented by all zeros.

In computer system, a floating-point number is represented as S E M, i.e. using Sign bit, Exponent bits and Mantissa bits.

The exponent can be a positive as well as a negative number. So to represent negative number we can use 1's complement or 2's complement. Better choice would be 2's complement.

If we use 2's complement system to represent exponent, then problem will arise while comparing 2 floating point numbers. For example, if exponent of the 2 numbers are negative then for comparing we will have to convert them into positive number.

So to avoid this extra work, excess-N code is used so that all exponent can be represented in positive numbers, starting with 0.

In computer system, a floating-point number is represented as S E M, i.e. using Sign bit, Exponent bits and Mantissa bits.

The exponent can be a positive as well as a negative number. So to represent negative number we can use 1's complement or 2's complement. Better choice would be 2's complement.

If we use 2's complement system to represent exponent, then problem will arise while comparing 2 floating point numbers. For example, if exponent of the 2 numbers are negative then for comparing we will have to convert them into positive number.

So to avoid this extra work, excess-N code is used so that all exponent can be represented in positive numbers, starting with 0.

+4 votes

And **(C) is the correct answer **because to **represent the smallest number we just only need to put all 0's in the exponent field**, so to get the actual exponent we need to subtract N from 0 only.

but if we use 2's complement' 1's complement/ sign magnitude we have that convert that the -ve exponent, while in Excess-N we just need to put all exponent bits as 0's.

- All categories
- General Aptitude 1.3k
- Engineering Mathematics 5.2k
- Digital Logic 2k
- Programming & DS 3.7k
- Algorithms 3.2k
- Theory of Computation 4k
- Compiler Design 1.6k
- Databases 3k
- CO & Architecture 2.6k
- Computer Networks 3k
- Non GATE 1k
- Others 1.3k
- Admissions 488
- Exam Queries 436
- Tier 1 Placement Questions 18
- Job Queries 56
- Projects 9

36,201 questions

43,661 answers

124,111 comments

42,944 users