A compound predicate contains two verbs which are connected by a conjunction. Having that it mind, the correct answer as to which sentence has a compound predicate with a direct object is the last option - Anne baked a cake and ate it. As you can see, there are two predicates here - <em>baked </em>and <em>ate, </em>and they are joined by the conjunction <em>and. </em>There is also a direct object here, the words <em>cake </em>and <em>it. </em>