GateAI
Number Representation and Arithmetic

GATE CSE 2017 Set 1 · Q7

MCQ1 markMedium

Time

The nn-bit fixed-point representation of an unsigned real number XX uses ff bits for the fraction part. Let i=n−fi = n - f. The range of decimal values for XX in this representation is

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: D) 0 to (2i - 2-f)

Number Representation and Arithmetic

In an unsigned fixed-point representation with nn total bits, i=n−fi = n - f integer bits, and ff fractional bits:

  • Minimum value: When all nn bits are 00, the value is:

    Xmin⁡=0X_{\min} = 0
  • Maximum value: When all nn bits are 11, the value is:

    Xmax⁡=∑k=0i−12k+∑j=1f2−j=(2i−1)+(1−2−f)=2i−2−fX_{\max} = \sum_{k=0}^{i-1} 2^k + \sum_{j=1}^f 2^{-j} = (2^i - 1) + (1 - 2^{-f}) = 2^i - 2^{-f}

Alternatively, representing the nn-bit number as an integer value M∈[0,2n−1]M \in [0, 2^n - 1] scaled by 2−f2^{-f}:

X=M×2−fX = M \times 2^{-f}
Xmin⁡=0×2−f=0X_{\min} = 0 \times 2^{-f} = 0
Xmax⁡=(2n−1)×2−f=2n−f−2−f=2i−2−fX_{\max} = (2^n - 1) \times 2^{-f} = 2^{n-f} - 2^{-f} = 2^i - 2^{-f}

Hence, the range of decimal values is 00 to (2i−2−f)(2^i - 2^{-f}), which matches option (D).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

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

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Number Representation and Arithmetic in GATE CSE

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 Arithmetic

More from GATE CSE 2017 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2017 Set 1 · Q7 · MCQ

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

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.