I read one old-midterm exam on Automata. consider:

the language that accepted by above pushdown automata is not generated by which of the following grammar?
1) S->aBaa|a$\epsilon$
aB->aS|$\epsilon$
2) S->aaB
aB->aaaB|$\epsilon$
3) S->aaB|a
aB->aaB|$\epsilon$
4) S->aB
B->aaB|$\epsilon$
i think (3) is true, but when we try to solve it with my friends, we think 1 and 3 is true? any hint or idea with detail highly appriciated.
thanks to all.
I'm not sure what your transition notation is for the automaton, but approaching it just as a "What's the odd grammar out?" question:
Thus you and your friends are correct that there is some mistake in the question. There is one obvious candidate. The production in the first grammar $S \rightarrow aBaa \mid a\varepsilon$ is very suspicious. $a\varepsilon$ is just $a$: the point of $\varepsilon$ is to be a placeholder when there's no other symbol in the string. I would double-check that production.