var questions = new Array();
var choices = new Array();
var answers = new Array();
var response = new Array();

questions[0] = "1) Which of these can not be used to make biodiesel?";
choices[0] = new Array();
choices[0][0] = "Animal Fat";
choices[0][1] = "Fish Oil";
choices[0][2] = "Engine oil";
choices[0][3] = "New vegetable oil";
answers[0] = choices[0][2];

questions[1] = "2) Which component of vegetable oil should not be in biodiesel?";
choices[1] = new Array();
choices[1][0] = "Methanol";
choices[1][1] = "Glycerol";
choices[1][2] = "Lye";
choices[1][3] = "Soap";
answers[1] = choices[1][1];

questions[2] = "3) What is one reason why lye is used in the biodiesel process?";
choices[2] = new Array();
choices[2][0] = "As a drying agent";
choices[2][1] = "As a catalyst";
choices[2][2] = "As a filtration aid";
choices[2][3] = "As a solvent";
answers[2] = choices[2][1];

questions[3] = "4) What is a titration commonly used for?";
choices[3] = new Array();
choices[3][0] = "To measure gel point";
choices[3][1] = "To measure acidity of oil";
choices[3][2] = "To measure viscosity of biodiesel";
choices[3][3] = "To neutralise any alkali in our oil during processing"; 
answers[3] = choices[3][1];

questions[4] = "5) What usually makes old, used oil acidic?";
choices[4] = new Array();
choices[4][0] = "FFA";
choices[4][1] = "HCL";
choices[4][2] = "H2SO4";
choices[4][3] = "Nitric acid";
answers[4] = choices[4][0];

questions[5] = "6) Which of these is not a byproduct of the biodiesel reaction when using lye?";
choices[5] = new Array();
choices[5][0] = "Soaps";
choices[5][1] = "Glycerol";
choices[5][2] = "Triglycerides";
choices[5][3] = "Water";
answers[5] = choices[5][2];

questions[6] = "7) What is the usual concentration of NaOH or KOH in water, when used for titrating oil?";
choices[6] = new Array();
choices[6][0] = "0.001 percent";
choices[6][1] = "0.01 percent";
choices[6][2] = "0.1 percent";
choices[6][3] = "1 percent";
answers[6] = choices[6][2];

questions[7] = "8) Which of these substances can NOT be used as an indicator in a titration?";
choices[7] = new Array();
choices[7][0] = "Turmeric";
choices[7][1] = "Phenolphthalein";
choices[7][2] = "Red Devil Lye";
choices[7][3] = "Red Cabbage";
answers[7] = choices[7][2];

questions[8] = "9) What does an indicator tell us when we titrate?";
choices[8] = new Array();
choices[8][0] = "The oil has reached ph 7.0";
choices[8][1] = "That the mixture has reached or gone through a certain pH";
choices[8][2] = "How wet the oil is";
choices[8][3] = "How much glycerol is in the oil";
answers[8] = choices[8][1];

questions[9] = "10) Which is the false statement?";
choices[9] = new Array();
choices[9][0] = "Methanol is a neuro-toxin";
choices[9][1] = "Methanol can be absorbed through your skin";
choices[9][2] = "Methanol exposure can make you blind";
choices[9][3] = "Methanol is a fatty acid";
answers[9] = choices[9][3];


// response for getting 100%
response[0] = "Excellent, top marks!";
// response for getting 90% or more
response[1] = "Excellent, try again to get 100%!"
// response for getting 70% or more
response[2] = "Well done, that is a good score, can you do better?";
// response for getting over 50%
response[3] = "Nice one, you got more than half of the questions right, can you do better?";
// response for getting 40% or more
response[4] = "You got some questions right, you can do better!";
// response for getting 20% or more
response[5] = "You didn't do too well, why not try again!?";
// response for getting 10% or more
response[6] = "That was pretty poor!  Try again to improve!";
// response for getting 9% or less
response[7] = "Oh dear, I think you need to go back to school (or try again)!";
