Data Representation & Arithmetic

Answer & solution
Answer: B under conventional single-precision rounding (no official key was published)
Step 1: Stored A and B are exact sign opposites, so A+B cancels to zero; subsequently X=0+1=1.
Step 2: Near magnitude 2·1030, single precision has a spacing vastly greater than 1. Thus A+1 rounds back to A, losing the small addend. Adding B afterward cancels to zero, giving Y=0.
Therefore B. This demonstrates nonassociativity of finite-precision addition. It assumes the stated 32-bit operations/rounding rather than an optimizer reassociating expressions or a wider intermediate format.