GATE / CS ARCHIVE

GATE CSE 2017 SET 1 / QUESTION 7

GATE CSE 2017 Set 1 Q7

Digital Logic · Number Systems & Computer Arithmetic · Full GATE CSE 2017 Set 1 paper

GATE 2017 Set 1, Q7 1 mark · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 7, GATE 2017: An unsigned n-bit fixed-point number has f fractional bits and i=n−f integer bits. Find its range. A 2^(−f) to 2^i; B 2^(−f) to 2^i−2^(−f); C 0 to 2^i; D 0 to 2^i−2^(−f).
Tap to enlarge
Your answer
Answer & solution

Official answer: D

1. Represent the stored bits first as an unsigned integer N. Its smallest code is 0 and largest is 2n−1.

2. The fixed binary point gives value X=N/2f, so the step size is 2−f. The upper endpoint is (2n−1)2−f=2n−f−2−f.

3. Substitute i=n−f. The inclusive representable range is 0 through 2i−2−f, D. The value 2i itself would need an extra integer bit.

Original paper, page 4 · Answer key