Question 8Asked in Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)

In binary subtraction, if a negative binary result is obtained, what can be done to obtain the positive result?बाइनरी घटाव में, यदि एक नकारात्मक बाइनरी परिणाम प्राप्त होता है, तो सकारात्मक परिणाम प्राप्त करने के लिए क्या किया जा सकता है?

बाइनरी घटाव में, यदि एक नकारात्मक बाइनरी परिणाम प्राप्त होता है, तो सकारात्मक परिणाम प्राप्त करने के लिए क्या किया जा सकता है?
  1. AInvert all the bits in the resultपरिणाम में सभी बिट्स को उल्टा करें
  2. BAdd 1 to the resultपरिणाम में 1 जोड़ें
  3. CSubtract the result from 0परिणाम को 0 से घटाएं
  4. DDivide the result by -1परिणाम को -1 से विभाजित करें
Show answerHide answer

Correct answer: (A) Invert all the bits in the resultपरिणाम में सभी बिट्स को उल्टा करें

Explanation

In 1's complement subtraction, if there is no end-around carry the result is negative and in 1's complement form, so inverting all its bits gives its magnitude. (In 2's complement you would invert and add 1.)1's complement घटाव में, यदि end-around carry न हो तो परिणाम ऋणात्मक होता है और 1's complement रूप में होता है, इसलिए उसके सभी बिट उलटने पर उसका परिमाण मिलता है। (2's complement में उलटकर 1 जोड़ा जाता।)

From Bihar STET 2024 Paper II Computer Science PYQ, 11 Jun 2024, Shift 2 (3:00 PM)

This is question 8 of Bihar STET 2024 Paper II Computer Science PYQ, 11 Jun 2024, Shift 2 (3:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.