1.Set up a qustion database,you can import questions with excel files.
2.If the score of each question is not same,you can filter the questions with their score,then draw out a fixed number of questions in each filter by random.This can make a fixed total score in one test paper.
3.When you set the database,there may be a answer column.Then when submiting the test,you can check the answer by querying the id of the question.