Sign extension is a step in:

2002

Sign extension is a step in:

  1. A.

    floating point multiplication

  2. B.

    signed 16-bit integer addition

  3. C.

    arithmetic left shift

  4. D.

    converting a signed integer from one size to another

Attempted by 34 students.

Show answer & explanation

Correct answer: D

Sign extension is used when a signed integer is converted from a smaller word size to a larger word size while preserving its numerical value. In 2's-complement representation, this is done by copying the sign bit into all newly added higher-order bits. Therefore, sign extension is a step in converting a signed integer from one size to another.

Explore the full course: Gate Guidance By Sanchit Sir