Computer AwarenessVery hardIBPS SO IT Officer
When two n-bit two's-complement numbers are added, overflow has occurred exactly when:
- A. Both operands have the same sign and the result has the opposite sign
- B. A carry comes out of the most significant bit position during the addition
- C. The operands have opposite signs and the result comes out negative
- D. The sign bit of the result is 1, whatever the signs of the operands
Correct answer: A. Both operands have the same sign and the result has the opposite sign
Overflow is possible only when both operands share a sign, and it shows as a result of the other sign. A carry out of the MSB alone is normal (e.g. −1 + 1) and is simply discarded.
हिंदी में
दो n-बिट टू’ज़-कॉम्प्लिमेंट संख्याएँ जोड़ने पर ओवरफ़्लो ठीक तब होता है जब:
- A. दोनों संकार्यों का चिह्न समान हो और परिणाम का चिह्न विपरीत हो
- B. जोड़ते समय सबसे महत्वपूर्ण बिट स्थान से कैरी बाहर निकले
- C. संकार्यों के चिह्न विपरीत हों और परिणाम ऋणात्मक आए
- D. परिणाम का साइन बिट 1 हो, संकार्यों के चिह्न चाहे जो हों
उत्तर: A. ओवरफ़्लो तभी संभव है जब दोनों संकार्यों का चिह्न समान हो, और यह विपरीत चिह्न के परिणाम के रूप में दिखता है। केवल MSB से कैरी निकलना सामान्य है (जैसे −1 + 1) और उसे छोड़ दिया जाता है।
More Computer Awareness questions
- Rotary shaft encoders and Karnaugh-map labels use Gray code mainly because:
- Which code is self-complementing, so that inverting every bit of a digit's code gives the code of its 9's complement?
- The hexadecimal number 3FA is written in binary without leading zeros. How many bits does it have?
- The full contents of a 64-bit register are written out once in hexadecimal and once in octal. At most how many digits does each form need?
- 725 − 248 is worked out by adding the 10's complement of 248 to 725 and dropping the end carry. What are the 10's complement and the final…
- What is (0.8)₁₆ + (0.4)₈, written in decimal?