is a -bit signed integer. The 's complement representation of is . The 's complement representation of is
View worked solution
Answer: A
The -bit signed integer is represented in 's complement form as .
Converting to its binary representation:
Multiplying a signed integer by () is equivalent to shifting its binary representation to the left by bits, filling the least significant bits with s:
Since the discarded MSBs are all s and the new sign bit is also , no overflow occurs. Converting this binary result back to hexadecimal:
Thus, the 's complement representation of is .
Free practice · Your answers on this page are not saved.
