First question:
For partnerships, the question really depends on what your basis in the partnership is and what the basis in the distributed property is. Since your basis in the partnership is below the basis in the distributed property, the partner will take a substituted basis of $80,000 in the property and have a remaining partnership basis of $0.
If the basis in the partnership was above the basis in the distributed property (say $150,000), then the property would take a basis of $147,000 and the remaining basis in the partnership would be $3,000.
–>Note that for partnerships, a sale or exchange has not deemed to have occurred upon distribution.
For S-corps and C-corps, distributions are deemed to be sale/exchanges, so the S-corp or C-corp must recognize gains (but not losses) on distributions of property. So the shareholder will always have a basis of FMV on the distributed property.
Second question:
When the corporation distributes property to the Anna, it is as if the corporation sold the property for FMV. So ABC corp will recognize gain of $25,000 ($100,000 FMV – $75,000 basis) which will increase E&P to $375,000 (Original E&P of $350,000 + gain of $25,000). Anna will recognize a dividend to the extent that ABC has E&P, so Anna recognizes a dividend of $100,000 on the distribution of the land and ABC has an E&P of $275,000 afterwards ($375,000 E&P – $100,000 FMV of distribution). Anna then takes a basis of $100,000 in the distributed land.