Computer AwarenessVery hardIBPS SO IT · IBPS PO Mains

Two 8-bit two's-complement numbers, 01100100 (100) and 00110010 (50), are added. What does the 8-bit result hold?

  1. A. 10010110, which reads as −106: an overflow has occurred
  2. B. 10010110, which reads as 150: no overflow
  3. C. 01111111: the result is held at the maximum, 127
  4. D. 00010110 with a carry out of 1, which reads as 22

Correct answer: A. 10010110, which reads as −106: an overflow has occurred

The sum 150 exceeds the 8-bit signed maximum of 127. The bits 10010110 are produced, which in two's complement mean 150 − 256 = −106; adding two positives and getting a negative is the sign of overflow.

हिंदी में

दो 8-बिट टू’ज़-कॉम्प्लिमेंट संख्याएँ, 01100100 (100) और 00110010 (50), जोड़ी जाती हैं। 8-बिट परिणाम में क्या होता है?

  1. A. 10010110, जो −106 पढ़ा जाता है: ओवरफ़्लो हुआ है
  2. B. 10010110, जो 150 पढ़ा जाता है: कोई ओवरफ़्लो नहीं
  3. C. 01111111: परिणाम अधिकतम 127 पर रोक दिया जाता है
  4. D. 00010110 और कैरी-आउट 1, जो 22 पढ़ा जाता है

उत्तर: A. योग 150, 8-बिट चिह्नित अधिकतम 127 से अधिक है। बिट 10010110 बनते हैं, जिनका टू’ज़ कॉम्प्लिमेंट में अर्थ 150 − 256 = −106 है; दो धनात्मक संख्याएँ जोड़ने पर ऋणात्मक मिलना ओवरफ़्लो का संकेत है।

More Computer Awareness questions

Exams that ask this topic