GATE Computer ScienceEasyGATE CS (PYQ pattern)
Every unsigned 33-digit decimal number (0 to 10³³ − 1) must be stored. What is the minimum number of bits with (i) BCD, (ii) densely packed decimal (each group of 3 digits in 10 bits), (iii) pure binary?
- A. 132, 110 and 109
- B. 132, 120 and 110
- C. 99, 110 and 110
- D. 132, 110 and 110
Correct answer: D. 132, 110 and 110
BCD: 4 bits per digit, 132. DPD: 11 groups of 3 digits × 10 bits = 110. Binary: ⌈33·log₂10⌉ = ⌈109.6⌉ = 110, since 2¹⁰⁹ < 10³³ ≤ 2¹¹⁰. So DPD reaches the binary optimum here.
More Digital Logic questions
- The 8-bit pattern 10000000 is read as (i) sign-magnitude, (ii) one's complement, (iii) two's complement and (iv) excess-128 (biased)…
- 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…
- 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…