var questions = new Array();
var choices = new Array();
var answers = new Array();
var response = new Array();
questions[0] = "1) What is the equivalent resistance of three resistors in series, R1 = 6 Ohms, R2 = 3 Ohms, R3 = 1 Ohm?";
choices[0] = new Array();
choices[0][0] = "10 Ohms";
choices[0][1] = "0.1 Ohms";
choices[0][2] = "0.668 Ohms";
choices[0][3] = "6 Ohms";
answers[0] = choices[0][0];

questions[1] = "2) What is the equivalent resistance of 5 - 10 Ohm resistors in parallel?";
choices[1] = new Array();
choices[1][0] = "50 Ohms";
choices[1][1] = "2 Ohms";
choices[1][2] = "5 Ohms";
choices[1][3] = "None of the above";
answers[1] = choices[1][1];

questions[2] = "3) What current flows through a 10 Ohm resistor when connected to 120 volts DC?";
choices[2] = new Array();
choices[2][0] = "10 Amp";
choices[2][1] = "2 Amp";
choices[2][2] = "12 Amp";
choices[2][3] = "1200 Amp";
answers[2] = choices[2][2];

questions[3] = "4) Four 12 Ohm resistors are connected in parallel; the voltage across each is 120 V AC, what is the total input current to the circuit?";
choices[3] = new Array();
choices[3][0] = "10 Amp";
choices[3][1] = "12 Amp";
choices[3][2] = "6 Amp";
choices[3][3] = "40 Amp";
answers[3] = choices[3][3];

questions[4] = "5) 240 volts is applied to a load of 6 Ohms, what power is dissipated by the load?";
choices[4] = new Array();
choices[4][0] = "72 Watts";
choices[4][1] = "9600 Watts";
choices[4][2] = "1440 VA";
choices[4][3] = "40 kW";
answers[4] = choices[4][1];

questions[5] = "6) Three 30 Ohm resistors are connected in series and the input voltage to the circuit is 240 volts.  What is the voltage across each resistor?";
choices[5] = new Array();
choices[5][0] = "30 Volts";
choices[5][1] = "40 Amp";
choices[5][2] = "80 Volts";
choices[5][3] = "240 Volts";
answers[5] = choices[5][2];

questions[6] = "7) The current through a load is 10 Amperes, the voltage is 120 Volts. What is the resistance of the resistor?";
choices[6] = new Array();
choices[6][0] = "6 Ohms";
choices[6][1] = "9 Ohms";
choices[6][2] = "12 Ohms";
choices[6][3] = "14 Ohms";
answers[6] = choices[6][2];

questions[7] = "8) If 30 amperes are flowing through a resistance of 0.2 Ohms what is the voltage across the resistor?";
choices[7] = new Array();
choices[7][0] = "4 Volts";
choices[7][1] = "6 Amp";
choices[7][2] = "8 Ohms";
choices[7][3] = "6 Volts";
answers[7] = choices[7][3];

questions[8] = "9) What is the kVA for a load that draws 100 Amp, at 480 Volts, with a power factor of 90%?";
choices[8] = new Array();
choices[8][0] = "43.2";
choices[8][1] = "48.0";
choices[8][2] = "53.3";
choices[8][3] = "24.0";
answers[8] = choices[8][1];

questions[9] = "10) The line to line voltage on a Wye circuit is measured to be 470 volts, what is the line to neutral voltage?";
choices[9] = new Array();
choices[9][0] = "470";
choices[9][1] = "235";
choices[9][2] = "271";
choices[9][3] = "120";
answers[9] = choices[9][2];

// 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)!";

