var questions = new Array();
var choices = new Array();
var answers = new Array();
var response = new Array();

questions[0] = "1) A generator changes ...";
choices[0] = new Array();
choices[0][0] = "kinetic energy into electrical energy.";
choices[0][1] = "electrical energy into kinetic energy.";
choices[0][2] = "electrical energy into heat energy.";

answers[0] = choices[0][0];

questions[1] = "2) ... is the rate of transfer of electrical energy.";
choices[1] = new Array();
choices[1][0] = "Voltage";
choices[1][1] = "Resistance";
choices[1][2] = "Electric power";

answers[1] = choices[1][2];

questions[2] = "3) Energy-saving bulbs transfer  ... compared to normal bulbs";
choices[2] = new Array();
choices[2][0] = "electrical energy into  more heat and less light";
choices[2][1] = "electrical energy into more light and less heat";
choices[2][2] = " heat into more light";

answers[2] = choices[2][1];

questions[3] = "4) Which answer is correct? All of these are renewable energy resources.";
choices[3] = new Array();
choices[3][0] = "Hydroelectric, wave, wind, tidal and nuclear";
choices[3][1] = "Hydroelectric, wave, wind, tidal and fossil fuels";
choices[3][2] = "Hydroelectric, wave, wind, tidal and biofuels";

answers[3] = choices[3][2];

questions[4] = "5) The speed of the DC electric motor cannot be increased by ...";
choices[4] = new Array();
choices[4][0] = "the use of a stronger magnetic field";
choices[4][1] = " having more turns in the coil of wire";
choices[4][2] = "using an alternating current";

answers[4] = choices[4][2];

questions[5] = "6) The unit of power is ...";
choices[5] = new Array();
choices[5][0] = "joule";
choices[5][1] = "ampere";
choices[5][2] = "watt";

answers[5] = choices[5][2];

questions[6] = "7) In a coal-fired power station, the turbine is turned by ...";
choices[6] = new Array();
choices[6][0] = "steam";
choices[6][1] = "electricity";
choices[6][2] = "wind";

answers[6] = choices[6][0];

questions[7] = "8) Turbines in a hydroelectric power station turn by ...";
choices[7] = new Array();
choices[7][0] = "steam";
choices[7][1] = "falling water";
choices[7][2] = "wind";

answers[7] = choices[7][1];

questions[8] = "9) The main disadvantage of generating electricity by wind is ...";
choices[8] = new Array();
choices[8][0] = "noise";
choices[8][1] = "expensive to set up";
choices[8][2] = "not reliable";

answers[8] = choices[8][2];

questions[9] = "10)  The electrical power of a bulb using 12 V supply and drawing a current of 0.5 A is ...";
choices[9] = new Array();
choices[9][0] = "12 Watt";
choices[9][1] = "6 Watt";
choices[9][2] = "6 Ohm";

answers[9] = choices[9][1];

questions[10] = "11) Kilowatt-hour is a unit of ...";
choices[10] = new Array();
choices[10][0] = "electrical energy";
choices[10][1] = "power";
choices[10][2] = "time";

answers[10] = choices[10][0];

questions[11] = "12) A 1000 W electric kettle is used for 2 hours. The cost at 10p per kWh is ...";
choices[11] = new Array();
choices[11][0] = "£ 2";
choices[11][1] = "20 p";
choices[11][2] = "£ 200";

answers[11] = choices[11][1];

questions[12] = "13) Efficiency is ...";
choices[12] = new Array();
choices[12][0] = "wasteful energy output per total energy input";
choices[12][1] = "useful energy input per total energy input";
choices[12][2] = "useful energy output per total energy input";

answers[12] = choices[12][2];

questions[13] = "14) The fuse in a plug provides protetion for the ...";
choices[13] = new Array();
choices[13][0] = "user";
choices[13][1] = "appliance";
choices[13][2] = "user and appliance";

answers[13] = choices[13][2];

questions[14] = "15) 100 J of energy is supplied to a torch. 5 J is transformed into light and 95 J is lost as heat. The efficiency of the torch is ...";
choices[14] = new Array();
choices[14][0] = "95 %";
choices[14][1] = "100 %";
choices[14][2] = "5 %";

answers[14] = choices[14][2];

questions[15] = "16) Higher tier only: Which answer is false? Residual current circuit breakers ..."; 
choices[15] = new Array();
choices[15][0] = "are designed to act more quickly than fuses";
choices[15][1] = "cannot completely prevent a shock";
choices[15][2] = "need to be replaced if two much current flows";

answers[15] = choices[15][2];

//response for getting 100%
response[0] = "Excellent, top marks!";
response[1] = "Revise Generating electricity";
response[2] = "Revise Power";
response[3] = "Revise Efficient use of energy";
response[4] = "Revise Renewable energy resources";
response[5] = "Revise DC Electric Motor";
response[6] = "Revise Power";
response[7] = "Revise Non renewable energy resources";
response[8] = "Revise Renewable energy resources";
response[9] = "Revise Renewable energy resources";
response[10] = "Revise Power";
response[11] = "Revise Cost of electricity";
response[12] = "Revise Cost of electricity";
response[13] = "Revise Efficiency";
response[14] = "Revise Fuse";
response[15] = "Revise Efficiency";
response[16] = "Revise Fuse";
