Computer AwarenessHardSSC CGL · IBPS PO Mains

What is the minimum number of bits needed to store every whole number from 0 to 9999 in pure binary?

  1. A. 13
  2. B. 16
  3. C. 15
  4. D. 14

Correct answer: D. 14

There are 10,000 values; 2¹³ = 8192 is too few but 2¹⁴ = 16,384 is enough, so 14 bits. Taking ⌊log₂ 9999⌋ = 13 forgets to round up, adding a sign bit gives 15, and 16 is what four BCD digits would need.

हिंदी में

0 से 9999 तक की प्रत्येक पूर्ण संख्या को शुद्ध बाइनरी में संग्रहीत करने के लिए न्यूनतम कितने बिट चाहिए?

  1. A. 13
  2. B. 16
  3. C. 15
  4. D. 14

उत्तर: D. 10,000 मान हैं; 2¹³ = 8192 कम है पर 2¹⁴ = 16,384 पर्याप्त है, इसलिए 14 बिट। ⌊log₂ 9999⌋ = 13 लेना ऊपर पूर्णांकित करना भूल जाता है, साइन बिट जोड़ने पर 15 आता है, और 16 वह है जो चार BCD अंकों को चाहिए।

More Computer Awareness questions

Exams that ask this topic