GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 1.14

Binary representation of a quarter

Digital Logic · Number Systems & Computer Arithmetic · Full GATE CSE 2002 paper

GATE 2002, Q1.14 1 mark · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 1.14, GATE 2002: Which statement describes decimal 0.25?
(A) It equals binary 0.1.
(B) It equals binary 0.01.
(C) It equals binary 0.00111… .
(D) It cannot be represented exactly in binary.
Tap to enlarge
Your answer
Answer & solution

Answer: B and C if the trailing ones continue forever (no official key was published)

Step 1: Evaluate both binary expansions as real numbers.

Step 2: In0.001111…, the first one is in the third fractional position, so its value is 1/8+1/16+1/32+… . Multiplying this sum by 1/2 and subtracting leaves half the sum equal to 1/8, hence the sum is 1/4. No finite truncation equals 1/4, but the infinite expansion does. The ellipsis is therefore essential to the recorded ambiguity.

Conclusion: The terminating binary representation is 0.01₂=2−2=1/4, B. But the printed alternative C,0.001111..., also equals sum_(j=3)^∞2−j=(1/8)/(1−1/2)=1/4 when the ellipsis means infinitely repeated ones. Thus both are exact real-number representations, analogous to decimal 0.999...=1. B is the unique terminating representation, but the prompt does not restrict to terminating representations. This is an overlapping-options issue, not an official-key claim.

Original paper, page 2