Answer:
A) Sanjay‘s recognized gain is $0 and his basis for the warehouse received is $500,000.
Explanation:
According to the Fair Value Accounting, certain assets are required to be recorded at fair value (i.e the market value) because the market-driven values are more relevant and reliable and represent the current value of an asset. Therefore Sanjay will record the warehouse received at fair value (i.e $500000).
Because the fair value of the asset is greater than it's adjusted value, there is a gain on the asset but since Sanjay has not offered the warehouse for sale to any body yet, the difference between the adjusted basis (book value) and the fair value (i.e the gain) is not realized yet. Therefore no gain is recognized yet. The gain will be recognized when the warehouse is disposed off/sold.