In a 5-bit 2's complement representation, the range of representable signed integers is:
[−25−1,25−1−1]=[−24,24−1]=[−16,+15] First, convert the binary representations of A and B to decimal:
A=010102=+(8+2)=+10
B=110102=−16+8+2=−6
Now evaluate each option:
(A) A+B: 10+(−6)=+4. Since +4∈[−16,+15], no overflow/underflow occurs.
(B) A−B: 10−(−6)=+16. Since +16>+15, this results in an arithmetic overflow.
(C) B−A: −6−10=−16. Since −16∈[−16,+15], no overflow/underflow occurs.
**(D) 2∗B:** 2×(−6)=−12. Since −12∈[−16,+15], no overflow/underflow occurs.
Therefore, operation (B) results in an arithmetic overflow.