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?

  1. A. 00111010
  2. B. 11111000
  3. C. 10100000
  4. 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) शिफ़्ट से दो स्थान दाईं ओर खिसकाया जाता है। परिणाम क्या है?

  1. A. 00111010
  2. B. 11111000
  3. C. 10100000
  4. D. 11111010

उत्तर: D. अंकगणितीय दायाँ शिफ़्ट साइन बिट को खाली हुए स्थानों में कॉपी करता है: 11101000 → 11110100 → 11111010 = −6, अर्थात् −24 ÷ 4। तार्किक शिफ़्ट शून्य डालता और 00111010 = 58 देता।

More Computer Awareness questions

Exams that ask this topic