The number can be represented as in -bit 's complement representation. Which of the following is/are CORRECT 's complement representation(s) of ?
View worked solution
Answer: B;D
To represent a signed integer with more bits in 's complement representation, we use sign extension. This involves replicating the most significant bit (MSB), which represents the sign, into all the newly added higher-order bit positions.
Given:
- The -bit 's complement representation of is .
- The MSB (sign bit) is (since the number is negative).
1. Representation in -bits:
To extend from bits to bits, we replicate the sign bit () four times to the left:
This matches Option B.
2. Representation in -bits:
To extend from bits to bits, we replicate the sign bit () twelve times to the left:
This matches Option D.
Why Options A and C are incorrect:
- Option A (): In -bit 's complement, this represents .
- Option C (): In -bit 's complement, this represents .
Thus, the correct options are B and D.
Free practice · Your answers on this page are not saved.
