Computer AwarenessVery hardIBPS SO IT · SBI PO

Assertion (A): The decimal fraction 0.1 cannot be stored exactly in binary floating point. Reason (R): 1/10 has the factor 5 in its denominator, so its binary expansion repeats forever.

  1. A. Both A and R are true, and R is the correct explanation of A
  2. B. Both A and R are true, but R is not the correct explanation of A
  3. C. A is true but R is false
  4. D. A is false but R is true

Correct answer: A. Both A and R are true, and R is the correct explanation of A

Only fractions whose denominator is a power of 2 terminate in binary. 0.1 = 1/(2 × 5) becomes 0.000110011… repeating, so it is rounded when stored; R gives exactly this reason.

हिंदी में

अभिकथन (A): दशमलव भिन्न 0.1 को बाइनरी फ़्लोटिंग पॉइंट में ठीक-ठीक संग्रहीत नहीं किया जा सकता। कारण (R): 1/10 के हर में गुणनखंड 5 है, इसलिए उसका बाइनरी प्रसार अनंत रूप से दोहराता रहता है।

  1. A. A और R दोनों सही हैं, और R, A की सही व्याख्या है
  2. B. A और R दोनों सही हैं, परंतु R, A की सही व्याख्या नहीं है
  3. C. A सही है, परंतु R गलत है
  4. D. A गलत है, परंतु R सही है

उत्तर: A. बाइनरी में केवल वे भिन्न समाप्त होती हैं जिनका हर 2 की घात हो। 0.1 = 1/(2 × 5) का रूप 0.000110011… दोहराता है, इसलिए संग्रहण के समय उसे पूर्णांकित करना पड़ता है; R ठीक यही कारण देता है।

More Computer Awareness questions

Exams that ask this topic