Which sentence has no errors in capitalization or end marks?

A."What a beautiful dog!" she exclaimed.

B.What a beautiful dog! she exclaimed.

C."What a beautiful dog! She exclaimed!"

D.What a beautiful dog!' she exclaimed.