For example, "I gave her a flower". In the sentence, "her" is the indirect object because "her" is receiving the object, "flower."
. For example, "She needs help". In the sentence, "help" is the direct object because it receives the action, "needs". It is what is needed.
Another example: "I like cake." "Cake" is the direct object, because it receives the action, "like".
. "At school, I took a test."