for/to win

Which are correct:

[color=red]1-He took an exam for giving students a scholarship to our University.
[color=indigo]2-He took an exam to give students a scholarship to our University.

[color=red]3-He took an exam for winning a scholarship to our University.
[color=indigo]4-He took an exam to win a scholarship to our University.

Gratefully,
Navi.

I’m not sure, but I’d say

He took an exam so as to win the scholarship from our University.

(4) is the only sentence that makes the meaning clear.