Best way to make a quiz/exam site

What plugins would be the best to set up a site like this:

A quiz/exam site. Users have to pay to take a test (like $10 to get 24 hour access to the test)

I need to add 3-400 questions, but each test should only pick 25-30 random questions from those 400.