Computer AwarenessHardSBI PO · IBPS Clerk · SSC CGL
The range of integers that can be stored in 8 bits using two's complement is:
- A. −127 to +127
- B. −128 to +127
- C. 0 to 255
- 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 बिट में संग्रहीत हो सकने वाले पूर्णांकों की रेंज है:
- A. −127 से +127
- B. −128 से +127
- C. 0 से 255
- D. −256 से +255
उत्तर: B. n बिट में टू’ज़ कॉम्प्लिमेंट −2ⁿ⁻¹ से 2ⁿ⁻¹ − 1 तक आता है, अर्थात् −128 से +127। −127 से +127 साइन-मैग्निट्यूड या वन’ज़ कॉम्प्लिमेंट की रेंज है, जिनमें दो शून्य होते हैं।
More Computer Awareness questions
- By De Morgan's theorem, the complement of (A + B) is equal to:
- In which situation does an operating system suffer from 'thrashing'?
- In a class C network with subnet mask 255.255.255.0, how many usable host addresses are available?
- Which program combines several object files and library routines into a single executable file?
- TCP and UDP are protocols of which OSI layer, and which of them guarantees ordered, reliable delivery?
- The Excess-3 code of the decimal digit 4 is: