Computer AwarenessVery hardSBI PO · IBPS Clerk · SSC CGL

The decimal number 45 is stored as an 8-bit unsigned binary number and then shifted left by 2 bits (zeros entering from the right, no overflow). The new decimal value is:

  1. A. 90
  2. B. 180
  3. C. 47
  4. D. 11

Correct answer: B. 180

45 = 00101101; shifting left by 2 gives 10110100 = 128 + 32 + 16 + 4 = 180. Each left shift doubles the value, so 45 × 4 = 180. 11 would come from a right shift by 2.

हिंदी में

दशमलव संख्या 45 को 8-बिट अचिह्नित बाइनरी संख्या के रूप में संग्रहीत किया जाता है और फिर 2 बिट बाईं ओर खिसकाया जाता है (दाईं ओर से शून्य आते हैं, कोई ओवरफ़्लो नहीं)। नया दशमलव मान है:

  1. A. 90
  2. B. 180
  3. C. 47
  4. D. 11

उत्तर: B. 45 = 00101101; 2 बिट बाएँ खिसकाने पर 10110100 = 128 + 32 + 16 + 4 = 180। प्रत्येक बायाँ खिसकाव मान को दोगुना करता है, इसलिए 45 × 4 = 180। 11, 2 बिट दाएँ खिसकाने से आता।

More Computer Awareness questions

Exams that ask this topic