I want to make a project on online examination which have some similar view like amcat and also have a view which run programs online.

First you must have a web pages that connect to the database. In your database you should have a set of questions with the corresponding answers, each question has a unique ID and this ID will be assigned to a new registered user that will be discussed later. These questions must be categorized properly for instance Math, English and so on.

To start the online examination, they have to register first and create a unique ID. So during the online examination the registered ID must be linked to the question ID and store their answer in a separate table where User ID, Question ID and Answer are the only availbale fields.

Hope this help.