Sign extension is a step in:
2002
Sign extension is a step in:
- A.
floating point multiplication
- B.
signed 16-bit integer addition
- C.
arithmetic left shift
- 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.