The statement “She came yesterday” is in the simple past tense.
The verb came is affirmative, so the question tag must be negative.
Past tense of come → auxiliary did → negative didn’t.
📌 Rule to remember:
Past tense statement → did / didn’t in the question tag
Why the others are wrong:
✔ So, the correct option is (C).