Next time, please list the possible answer choices. Without them, all I can do is to attempt this problem without having those choices as guidelines.
I must assume that your expression x^4-5x+3/x^2+7 actually meant:
5x + 3
x^4 - ---------------
x^2 + 7
and I assume that this result was one of the several possible answer choices.