Computer AwarenessVery hardIBPS SO IT · SBI PO

The 8-bit pattern 11110110 stores a signed integer in two's complement form. What is its value?

  1. A. −118
  2. B. 246
  3. C. −10
  4. D. −9

Correct answer: C. −10

The MSB is 1, so it is negative; inverting and adding 1 gives 00001010 = 10, so the value is −10. −118 is the sign-magnitude reading, 246 the unsigned reading and −9 the one's-complement reading.

हिंदी में

8-बिट पैटर्न 11110110 एक चिह्नित पूर्णांक को टू’ज़ कॉम्प्लिमेंट रूप में संग्रहीत करता है। उसका मान क्या है?

  1. A. −118
  2. B. 246
  3. C. −10
  4. D. −9

उत्तर: C. MSB 1 है, इसलिए संख्या ऋणात्मक है; बिट उलटकर 1 जोड़ने पर 00001010 = 10 मिलता है, इसलिए मान −10 है। −118 साइन-मैग्निट्यूड पाठ है, 246 अचिह्नित पाठ है और −9 वन’ज़ कॉम्प्लिमेंट पाठ है।

More Computer Awareness questions

Exams that ask this topic