How to create portal for online test?

Hii guys,I am creating a site for my college and they want feature of online test too.Letz suppose,aptitude test,general knowledge test.
How can I achieve this?