The sentence that uses possessive pronouns correctly is
A. That dress looks like yours.
B. Is wrong because it's should be its. It's is a contraction for it is. So it would read - My dog carried it is toy out to the backyard.
C. Is wrong because their should not have an apostrophe s. It should read - The credit for the great food is all theirs.
D. Is wrong because her shouldn't have an apostrophe s. It should read - Those books on the shelf are hers.
Hope this helps :)