Computer AwarenessVery hardIBPS SO IT Officer
The 8-bit two's-complement value 11101000 (−24) is shifted right by two places using an ARITHMETIC shift. What is the result?
- A. 00111010
- B. 11111000
- C. 10100000
- D. 11111010
Correct answer: D. 11111010
An arithmetic right shift copies the sign bit into the vacated places: 11101000 → 11110100 → 11111010 = −6, i.e. −24 ÷ 4. A logical shift would insert zeros and give 00111010 = 58.
हिंदी में
8-बिट टू’ज़-कॉम्प्लिमेंट मान 11101000 (−24) को अंकगणितीय (ARITHMETIC) शिफ़्ट से दो स्थान दाईं ओर खिसकाया जाता है। परिणाम क्या है?
- A. 00111010
- B. 11111000
- C. 10100000
- D. 11111010
उत्तर: D. अंकगणितीय दायाँ शिफ़्ट साइन बिट को खाली हुए स्थानों में कॉपी करता है: 11101000 → 11110100 → 11111010 = −6, अर्थात् −24 ÷ 4। तार्किक शिफ़्ट शून्य डालता और 00111010 = 58 देता।
More Computer Awareness questions
- When two n-bit two's-complement numbers are added, overflow has occurred exactly when:
- Rotary shaft encoders and Karnaugh-map labels use Gray code mainly because:
- Which code is self-complementing, so that inverting every bit of a digit's code gives the code of its 9's complement?
- The hexadecimal number 3FA is written in binary without leading zeros. How many bits does it have?
- The full contents of a 64-bit register are written out once in hexadecimal and once in octal. At most how many digits does each form need?
- 725 − 248 is worked out by adding the 10's complement of 248 to 725 and dropping the end carry. What are the 10's complement and the final…