Question #30847

If I am randomizing a set of questions in an external files and I have multiple choice answers that pertain to specific questions. How do I keep them all together?

Expert's answer

To solve this problem we create one file which containsa question, a divider (a point or a comma) and the answer for this question.

It has such appearance: Question , answer
For example, we have a question: What is the capital of GB?1. London, 2. Berlin, ....
Correct answer is 1. London
Then, in the file we write:

What is the capital of GB? , 1
LATEST TUTORIALS
APPROVED BY CLIENTS