Question
The -bit fixed-point representation of an unsigned real number uses bits for the fraction part. Let . The range of decimal values for in this representation is
Official answer and solution
- Official answer
- D
- From
- Official GATE 2017 answer key
Solution
Determine the minimum and maximum representable decimal values for an -bit unsigned fixed-point representation with integer bits and fractional bits.
In an -bit unsigned fixed-point format with integer bits and fractional bits (), the weight of each bit position from to is .
The minimum value occurs when all bits are 0:
The maximum value occurs when all bits are 1:
Thus, the range of decimal values for is to .
D
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2017 Computer Science and Information Technology (CS) Session 1
- Question
- 7 of 65, printed as CS Q.7
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.