Computer AwarenessHardSBI PO · IBPS Clerk · SSC CGL

The range of integers that can be stored in 8 bits using two's complement is:

  1. A. −127 to +127
  2. B. −128 to +127
  3. C. 0 to 255
  4. D. −256 to +255

Correct answer: B. −128 to +127

Two's complement in n bits covers −2ⁿ⁻¹ to 2ⁿ⁻¹ − 1, i.e. −128 to +127. −127 to +127 is the range in sign-magnitude or one's complement, which have two zeros.

हिंदी में

टू’ज़ कॉम्प्लिमेंट में 8 बिट में संग्रहीत हो सकने वाले पूर्णांकों की रेंज है:

  1. A. −127 से +127
  2. B. −128 से +127
  3. C. 0 से 255
  4. D. −256 से +255

उत्तर: B. n बिट में टू’ज़ कॉम्प्लिमेंट −2ⁿ⁻¹ से 2ⁿ⁻¹ − 1 तक आता है, अर्थात् −128 से +127। −127 से +127 साइन-मैग्निट्यूड या वन’ज़ कॉम्प्लिमेंट की रेंज है, जिनमें दो शून्य होते हैं।

More Computer Awareness questions

Exams that ask this topic