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?

  1. A. 132, 110 and 109
  2. B. 132, 120 and 110
  3. C. 99, 110 and 110
  4. 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

Exams that ask this topic