Computer AwarenessVery hardIBPS SO IT Officer
The 8-bit pattern 10000101 is read as a sign-magnitude, a one's complement and a two's complement number. Which list gives its values in that order?
- A. −5, −123, −122
- B. −5, −122, −123
- C. −122, −5, −123
- D. −123, −122, −5
Correct answer: B. −5, −122, −123
Sign-magnitude: sign 1, magnitude 0000101 = 5, so −5. One's complement: invert to 01111010 = 122, so −122. Two's complement: −128 + 5 = −123.
हिंदी में
8-बिट पैटर्न 10000101 को साइन-मैग्निट्यूड, वन’ज़ कॉम्प्लिमेंट और टू’ज़ कॉम्प्लिमेंट संख्या के रूप में पढ़ा जाता है। कौन-सी सूची उसके मान इसी क्रम में देती है?
- A. −5, −123, −122
- B. −5, −122, −123
- C. −122, −5, −123
- D. −123, −122, −5
उत्तर: B. साइन-मैग्निट्यूड: साइन 1, परिमाण 0000101 = 5, इसलिए −5। वन’ज़ कॉम्प्लिमेंट: उलटने पर 01111010 = 122, इसलिए −122। टू’ज़ कॉम्प्लिमेंट: −128 + 5 = −123।
More Computer Awareness questions
- A Hamming code must correct any single-bit error in a block of 12 data bits. What is the minimum number of check (parity) bits needed?
- A sender appends an even-parity bit to every 7-bit character. Which received 8-bit word shows that an error has occurred?
- In ASCII the capital letter 'G' has the code 71 (decimal). What is the code of the small letter 'g', written in hexadecimal?
- In ASCII, 'M' is 77 and 'm' is 109, so changing one into the other flips exactly one bit. What is the place value of that bit?
- A text file is saved in UTF-8. How many bytes does the English letter 'A' take, and how many does a Devanagari letter such as 'क' take?
- In which number base is the statement 3 × 4 = 13 true?