Who determines that one goes to hell?

What´s not clear for me is that if, in one hand, each one makes a free exam
to understand the bible, in the other someone -is it God?-, that is, not
myself, determines through an exam that I will go to hell or to heaven. Tha
question is:

Who is in charge of the exam that judges if I will or I will not go to
heaven. Is it God? Is it Saint Peter?

Could we interpret that in protestantism there are two exams: one
autonomous, and another heteronomous?

Partial thread listing: