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.
- A. Both A and R are true, and R is the correct explanation of A
- B. Both A and R are true, but R is not the correct explanation of A
- C. A is true but R is false
- 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 है, इसलिए उसका बाइनरी प्रसार अनंत रूप से दोहराता रहता है।
- A. A और R दोनों सही हैं, और R, A की सही व्याख्या है
- B. A और R दोनों सही हैं, परंतु R, A की सही व्याख्या नहीं है
- C. A सही है, परंतु R गलत है
- D. A गलत है, परंतु R सही है
उत्तर: A. बाइनरी में केवल वे भिन्न समाप्त होती हैं जिनका हर 2 की घात हो। 0.1 = 1/(2 × 5) का रूप 0.000110011… दोहराता है, इसलिए संग्रहण के समय उसे पूर्णांकित करना पड़ता है; R ठीक यही कारण देता है।
More Computer Awareness questions
- What is (1010.11)₂ + (3.25)₁₀, expressed in binary?
- If (121)b = (49)₁₀, what is the base b?
- A 16-bit register holds (FFFF)₁₆, read as a two's-complement signed integer. What value does it hold?
- Two 8-bit two's-complement numbers, 01100100 (100) and 00110010 (50), are added. What does the 8-bit result hold?
- In a half adder, which gates produce the Sum and the Carry outputs?
- For how many of the 8 possible combinations of the inputs A, B and C does the circuit (A NAND B) NOR C output 1?