The following source produces quizzes and also its answers as in the following demonstration:

 All you need to do is change answertrue to answerfalse in the source and that's it!!!   (You also have to type the solutions of course).

Here is the source

  quiz.tex