GATE CS 2017, set 1 · Question 7 · Digital Logic · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

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

  1. (A) 2⁻ᶠ to 2ⁱ
  2. (B) 2⁻ᶠ to (2ⁱ - 2⁻ᶠ)
  3. (C) 0 to 2ⁱ
  4. (D) 0 to (2ⁱ - 2⁻ᶠ)
Answer

Answer (D)

Answer from the official GATE CS 2017 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes