Consider the following 8-bit signed integers x, y using sign-magnitude format is x = 10110100, y = 01001100. Which of the following operations results overflow?
Correct Answer :
x - y
Solution :
The correct option is x - y.
Let us analyze the given 8-bit signed integers and represented in the sign-magnitude format.
In an 8-bit sign-magnitude representation, the most significant bit (MSB, the leftmost bit) represents the sign (0 for positive, 1 for negative), and the remaining 7 bits represent the magnitude of the number.
First, we decode the value of :
The sign bit (MSB) is 1, which means is negative.
The magnitude bits are .
Converting this magnitude to decimal:
.
Therefore, .
Next, we decode the value of :
The sign bit (MSB) is 0, which means is positive.
The magnitude bits are .
Converting this magnitude to decimal:
.
Therefore, .
For an 8-bit sign-magnitude representation, the range of representable integers is from:
to , which is to .
An arithmetic overflow occurs if the mathematical result of an operation falls outside this representable range of .
Let us evaluate the operation x - y:
.
Since is strictly less than the minimum representable value of , this operation causes a negative overflow.
For completeness, let us check the other operations:
• (Within range)
• (This would also overflow, but is the designated correct option)
• (Within range)
Thus, the operation x - y results in overflow.
Access expert-curated educational resources and study materials—completely free.
Create, conduct, and manage professional online assessments with Mindyard. Perfect for teachers and institutes.
Copyright © 2026 Mindyard. All Rights Reserved.