var questions = new Array();
var choices = new Array();
var answers = new Array();
var response = new Array();




questions[0] = "1) You do a titration on some WVO, which shows 1.5g + base amount. If your batch is 100 litres, how much NaOH or KOH would you use?";
choices[0] = new Array();
choices[0][0] = "6.5g NaOH or 8.5g KOH";
choices[0][1] = "150g NaOH or 200g KOH";
choices[0][2] = "450g NaOH or 550g KOH";
choices[0][3] = "650g NaOH or 850g KOH";
answers[0] = choices[0][3];


questions[1] = "2) Describe the flame of burning methanol";
choices[1] = new Array();
choices[1][0] = "Yellow/orange with black smoke";
choices[1][1] = "Almost invisible, especially in daylight";
choices[1][2] = "Bright blue";
choices[1][3] = "Yellow, with no smoke";
answers[1] = choices[1][1];

questions[2] = "3) You are demonstrating the biodiesel process to a friend, when the doorbell rings. The methoxide has been dosed in and you are 1/2 way through the reaction process. What would be the <b>safest</b> thing to do?";
choices[2] = new Array();
choices[2][0] = "Ask your friend to keep an eye on the process while you answer the door.";
choices[2][1] = "Ask your friend to leave the processing area, while you go to answer the door.";
choices[2][2] = "Ask your friend to answer the door and explain that you can't be disturbed right now.";
choices[2][3] = "Ask your friend to answer the door and bring whoever is there round to the processor.";
answers[2] = choices[2][2];

questions[3] = "4) How can you test the pH of oil?";
choices[3] = new Array();
choices[3][0] = "Directly, with an electronic pH meter";
choices[3][1] = "Directly, with litmus paper";
choices[3][2] = "Directly, with phenolphthalein solution";
choices[3][3] = "You can't test the pH of oil, but you can use a titration to find its acid number.";
answers[3] = choices[3][3];

questions[4] = "5) Which is correct?";
choices[4] = new Array();
choices[4][0] = "Oil will dissolve in methanol";
choices[4][1] = "Biodiesel will dissolve in water";
choices[4][2] = "Water will dissolve in biodiesel";
choices[4][3] = "Lye will dissolve in biodiesel";
answers[4] = choices[4][2];

questions[5] = "6) You accidentally spill lye / methoxide on your hand. What is the correct procedure for dealing with this accident?";
choices[5] = new Array();
choices[5][0] = "Put burn ointment on it";
choices[5][1] = "Pour vinegar over it";
choices[5][2] = "Put bicarbonate of soda on it";
choices[5][3] = "Immediately rinse with plenty of running cold water, for at least an hour";
answers[5] = choices[5][3];

questions[6] = "7) In fresh vegetable oils and animal fats, how many long chain fatty acids are joined to a glycerol molecule?";
choices[6] = new Array();
choices[6][0] = "1";
choices[6][1] = "2";
choices[6][2] = "3";
choices[6][3] = "4";
answers[6] = choices[6][2];

questions[7] = "8) You have 100 litres of WVO, which titrates at 0.5g + base. How many litres of biodiesel might you reasonably expect to make from it?";
choices[7] = new Array();
choices[7][0] = "50";
choices[7][1] = "75";
choices[7][2] = "90";
choices[7][3] = "105.5";
answers[7] = choices[7][2];

questions[8] = "9) You have made a batch of canola biodiesel which looks bright and crystal clear through the hot noon-day sun.You are dismayed the next morning to see it has turned cloudy. Most likely, why would this be? (Your biodiesel is 22C in the morning)";
choices[8] = new Array();
choices[8][0] = "It may not be completely dry";
choices[8][1] = "Your conversion must have been poor";
choices[8][2] = "You must have left some soap in the biodiesel";
choices[8][3] = "There must be some high melting point fats in it";
answers[8] = choices[8][0];

questions[9] = "10) You have heard tales about biodiesel damaging modern fuel systems. Which of these is false, so is not worth worrying about?";
choices[9] = new Array();
choices[9][0] = "Poorly reacted biodiesel can be too viscous for modern injection pumps";
choices[9][1] = "The rubber fuel hoses will perish. Change the rubber hoses for synthetic ones.";
choices[9][2] = "Poorly dried biodiesel can lead to bacteria growing in your tank, fuel lines and filters";
choices[9][3] = "No modern cars have any natural rubber components in their fuel system";
answers[9] = choices[9][1];


// 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)!";
