The n-bit fixed-point representation of an unsigned real number X uses f bits for the fraction part. Let i = n - f. The range of decimal values for X in this representation is
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2017 Set 1 · Q7
Time
Select one answerSingle correct
Solution
Official answer: D) 0 to (2i - 2-f)
Number Representation and ArithmeticIn an unsigned fixed-point representation with total bits, integer bits, and fractional bits:
Minimum value: When all bits are , the value is:
Maximum value: When all bits are , the value is:
Alternatively, representing the -bit number as an integer value scaled by :
Hence, the range of decimal values is to , which matches option (D).
Try the question first, then check your work.
Examiner trap
Since the number is unsigned, the smallest value is all zeros (), and the largest value has all bits set to 1.
This Number Representation and Arithmetic previous year question is Q7 of the GATE CSE 2017 Set 1 paper. Find more GATE CSE PYQs on Number Representation and Arithmetic in Digital Logic, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Number Representation and Arithmetic PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Number Representation and Arithmetic has 33 GATE CSE PYQs across 20 papers from 2012 to 2026. 13 of them are 1-mark MCQs like this one, and GATE CSE 2017 Set 1 has 2.
How GATE tests Number Representation and ArithmeticIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.