Shifting a register content to left by one bit is equivalent to _____.

2018

Shifting a register content to left by one bit is equivalent to _____.

  1. A.

    Division by 2

  2. B.

    Addition by 2

  3. C.

    Multiplication by 2

  4. D.

    Subtraction by 2

Attempted by 281 students.

Show answer & explanation

Correct answer: C

Shifting the contents of a register to the left by one bit is equivalent to multiplying the number by 2 , for unsigned values and provided no overflow occurs. Logical left shift: a zero is shifted into the least significant bit and the most significant bit is shifted out (and lost). This causes multiplication by 2 but can overflow if the shifted-out bit was 1.

Right shift and division: logical right shift inserts zero into the most significant bit and (for unsigned numbers) divides the value by 2. Arithmetic right shift replicates the sign bit and is used to preserve the sign for signed values.

Summary: left shift ≈ multiply by 2 (unsigned, no overflow); right logical shift ≈ divide by 2 (unsigned); signed-number behavior depends on whether the shift is arithmetic or logical.

रजिस्टर के कंटेंट को एक बिट बाएँ (Left Shift) शिफ्ट करने पर उसका मान अनसाइन्ड संख्या के लिए और जब ओवरफ़्लो नहीं होता है तो 2 से गुणा हो जाता है। लॉजिकल लेफ्ट शिफ्ट: LSB में 0 आता है और MSB बाहर shift होकर खो जाता है — इससे मान 2 से गुणा होता है पर ओवरफ़्लो हो सकता है।

राइट शिफ्ट: अनसाइन्ड के लिए लॉजिकल राइट शिफ्ट मान को 2 से भाग करता है; साइन-बिट बनाए रखने के लिए अरिथमैटिक राइट शिफ्ट साइन-बिट की नकल करता है।

अतः सही उत्तर: Multiplication by 2

Explore the full course: Niacl Ao It Specialist