GATE Computer ScienceEasyGATE CS (PYQ pattern)
How many of the numbers 0.05, 0.25, 0.3125, 0.6, 0.71875 and 0.9375 can be stored exactly in an unsigned fixed-point format with 4 fraction bits?
- A. 4
- B. 2
- C. 3
- D. 5
Correct answer: C. 3
Exact with 4 fraction bits means 16x is an integer. 0.25 = 4/16, 0.3125 = 5/16 and 0.9375 = 15/16 qualify. 0.71875 = 23/32 needs 5 bits; 0.05 and 0.6 have a factor 5 in the denominator and never terminate in binary. Count 3.
More Digital Logic questions
- f(a,b,c) is a threshold function if f = 1 exactly when w1·a + w2·b + w3·c ≥ t for some real weights and threshold (negative weights…
- A Boolean function is affine if it equals c ⊕ (XOR of some subset of its variables) for a constant c, and self-dual if f(x̄) = f(x)'…
- A Boolean function f is self-dual if f(x̄) = f(x)' for every input x. How many self-dual functions of three variables A, B, C depend…
- How many Boolean functions f(A,B,C,D) are self-dual (f(x̄) = f(x)' for every input x) and can also be written as a single product of…
- F(A,B,C,D) = 1 exactly when the unsigned number ABCD (A is the MSB) is a prime. How many literals are there in the minimal sum-of-products…
- What is the minimum number of 2-input NOR gates needed to realise A XOR B when only the true inputs A and B are available?