No matter what level of schooling you may be in, it is always helpful to have a prayer for passing a test handy.
It is important to recognize that ultimately God created our intellect, and he can help us retain the necessary information we need to pass an exam.
One of the most common prayers for passing a test is from St. Thomas Aquinas, patron of students and universities.
Creator of all things, true source of light and wisdom, origin of all being, graciously let a ray of your light penetrate the darkness of my understanding.
Take from me the double darkness in which I have been born, an obscurity of sin and ignorance.
Give me a keen understanding, a retentive memory, and the ability to grasp things correctly and fundamentally.
Grant me the talent of being exact in my explanations and the ability to express myself with thoroughness and charm.
Point out the beginning, direct the progress, and help in the completion.
I ask this through Jesus Christ our Lord.
Amen.