var questions = new Array();
var choices = new Array();
var answers = new Array();
var response = new Array();

questions[0] = "1) Your side mirrors are convex. Does that show things:";
choices[0] = new Array();
choices[0][0] = "How they are";
choices[0][1] = "Closer than they actually are";
choices[0][2] = "Further away than they actually are";
choices[0][3] = "Much closer than they actually are";
answers[0] = choices[0][2];

questions[1] = "2) You must never reverse:";
choices[1] = new Array();
choices[1][0] = "For longer than necessary";
choices[1][1] = "From a major road to a minor road";
choices[1][2] = "If pedestrians are walking on the pavement";
choices[1][3] = "If after 7pm";
answers[1] = choices[1][0];

questions[2] = "3) Mobile phones should only be used when:";
choices[2] = new Array();
choices[2][0] = "During a breakdown or emergency";
choices[2][1] = "When on the move in an emergency";
choices[2][2] = "On the hard shoulder";
choices[2][3] = "When you have stopped in a safe place";
answers[2] = choices[2][3];

questions[3] = "4) Hazard warning lights are used if broken down or:";
choices[3] = new Array();
choices[3][0] = "If parked somewhere you shouldn't";
choices[3][1] = "If you notice a big stationary traffic jam ahead on a motorway";
choices[3][2] = "To thank someone else for letting you go";
choices[3][3] = "If parked";
answers[3] = choices[3][1];

questions[4] = "5) Green reflective studs are found on which part of a motorway?";
choices[4] = new Array();
choices[4][0] = "To mark slip roads and exits";
choices[4][1] = "To mark lanes";
choices[4][2] = "Between hard shoulder and carriageway";
choices[4][3] = "Between carriageway and central reservation";
answers[4] = choices[4][0];

questions[5] = "6) Red reflective studs are found on which part of a motorway?";
choices[5] = new Array();
choices[5][0] = "To mark slip roads and exits";
choices[5][1] = "To mark lanes";
choices[5][2] = "Between hard shoulder and carriageway";
choices[5][3] = "Between carriageway and central reservation";
answers[5] = choices[5][2];

questions[6] = "7) White reflective studs are found on which part of a motorway?";
choices[6] = new Array();
choices[6][0] = "To mark slip roads and exits";
choices[6][1] = "To mark lanes";
choices[6][2] = "Between hard shoulder and carriageway";
choices[6][3] = "Between carriageway and central reservation";
answers[6] = choices[6][1];

questions[7] = "8) How is the overall stopping distance broken down?";
choices[7] = new Array();
choices[7][0] = "Thinking distance and braking distance";
choices[7][1] = "Braking distance and stopping distance";
choices[7][2] = "MSM";
choices[7][3] = "Thinking distance, reaction distance, stopping distance";
answers[7] = choices[7][0];

questions[8] = "9) On the zig-zag line of a pedestrian crossing you must not park or?";
choices[8] = new Array();
choices[8][0] = "overtake";
choices[8][1] = "Break down";
choices[8][2] = "Stop";
choices[8][3] = "Steer";
answers[8] = choices[8][0];

questions[9] = "10) On a motorway you about to overtake the vehicle in front but notice that the car behind has started to overtake you. What should you do?";
choices[9] = new Array();
choices[9][0] = "Slow right down to a extra safe distance";
choices[9][1] = "Do not signal or slow down until the car has overtaken you and its safe";
choices[9][2] = "Accelerate and overtake quickly";
choices[9][3] = "Use your horn as a warning";
answers[9] = choices[9][1];

questions[10] = "11) If you drive on a motorway for a long distance and you feel tired you should:";
choices[10] = new Array();
choices[10][0] = "Make sure that your car is well ventilated and when possible stop at a service station for a short nap or a walk around";
choices[10][1] = "Regularly stop on the hard shoulder for regular breaks";
choices[10][2] = "Increase your speed to shorten your journey and increase adrenaline";
choices[10][3] = "Turn the radio volume up to maximum to increase awareness";
answers[10] = choices[10][0];

questions[11] = "12) 'Thinking distance' refers to:";
choices[11] = new Array();
choices[11][0] = "The distance travelled from when the hazard is first seen to the time that you have pressed the brakes";
choices[11][1] = "The distance that you think you'll stop the car completely";
choices[11][2] = "The distance it takes to stop the car";
choices[11][3] = "The two second rule";
answers[11] = choices[11][0];

questions[12] = "13) You must not drive if the proprotion of alcohol in each 100 millilitres of your breath exceeds?";
choices[12] = new Array();
choices[12][0] = "35 microgrammes";
choices[12][1] = "55 microgrammes";
choices[12][2] = "107 microgrammes";
choices[12][3] = "112 microgrammes";
answers[12] = choices[12][0];

questions[13] = "14) Once you leave a motorway or dual carriageway your speed is likely to feel:";
choices[13] = new Array();
choices[13][0] = "Faster than you actually are";
choices[13][1] = "Much faster than you really are";
choices[13][2] = "At about the right speed";
choices[13][3] = "Slower than you really are";
answers[13] = choices[13][3];

questions[14] = "15) Hanging objects from your rear view mirror may restrict your view but also?";
choices[14] = new Array();
choices[14][0] = "Aid your awareness";
choices[14][1] = "Improve concentration";
choices[14][2] = "Distract your attention";
choices[14][3] = "Help keep you awake";
answers[14] = choices[14][2];

questions[15] = "16) Noticing people waiting at a zebra crossing but they have not stepped on to the crossing you should:";
choices[15] = new Array();
choices[15][0] = "Stop";
choices[15][1] = "Drive on cautiously";
choices[15][2] = "Wave them across";
choices[15][3] = "Use your horn";
answers[15] = choices[15][0];

questions[16] = "17) When reversing you notice a pedestrian who might cross behind you. You should:";
choices[16] = new Array();
choices[16][0] = "Wave them across the road";
choices[16][1] = "Drive slowly backwards";
choices[16][2] = "Use your horn";
choices[16][3] = "Stop and see if the pedestrian crosses behind";
answers[16] = choices[16][3];

questions[17] = "18) You are most likely to be affected by crosswinds if you are:";
choices[17] = new Array();
choices[17][0] = "Driving a car";
choices[17][1] = "Riding a bicycle";
choices[17][2] = "Driving a high sided vehicle";
choices[17][3] = "Riding a motorbike";
answers[17] = choices[17][2];

questions[18] = "19) If the flashing of headlights is a warning signal, what is the purpose of the horn?";
choices[18] = new Array();
choices[18][0] = "To give priority to another road user";
choices[18][1] = "To say hello";
choices[18][2] = "To tell someone to hurry up";
choices[18][3] = "Warning signal";
answers[18] = choices[18][3];

questions[19] = "20) What shaped signs give instructions to tram drivers only?";
choices[19] = new Array();
choices[19][0] = "Square";
choices[19][1] = "Triangle";
choices[19][2] = "Circle";
choices[19][3] = "Diamond";
answers[19] = choices[19][3];

questions[20] = "21) When are pedestrians and cyclists most vulnerable, apart from at night?";
choices[20] = new Array();
choices[20][0] = "At Dawn or dusk";
choices[20][1] = "Lunchtime";
choices[20][2] = "Anytime of the day";
choices[20][3] = "4pm";
answers[20] = choices[20][0];

questions[21] = "22) A white circular sign with a black diagonal line indicates:";
choices[21] = new Array();
choices[21][0] = "No stopping";
choices[21][1] = "No parking";
choices[21][2] = "National speed limit applies";
choices[21][3] = "No vehicles";
answers[21] = choices[21][2];

questions[22] = "23) The back of the car skids out to the left, what would you do to correct the skid?";
choices[22] = new Array();
choices[22][0] = "Steer right";
choices[22][1] = "Steer left";
choices[22][2] = "Use the handbrake";
choices[22][3] = "Brake harder";
answers[22] = choices[22][1];

questions[23] = "24) At a speed of 70mph. Every second your car will travel approximately:";
choices[23] = new Array();
choices[23][0] = "75 feet";
choices[23][1] = "90 feet";
choices[23][2] = "98 feet";
choices[23][3] = "105 feet";
answers[23] = choices[23][3];

questions[24] = "25) Who is responsible for ensuring children wear a seat belt in a car?";
choices[24] = new Array();
choices[24][0] = "The passengers choice";
choices[24][1] = "Police";
choices[24][2] = "Driver";
choices[24][3] = "Parents";
answers[24] = choices[24][2];

questions[25] = "26) You notice a car in the rear view mirror with a yellow flashing light, what is it?";
choices[25] = new Array();
choices[25][0] = "A fire engine";
choices[25][1] = "A Dentist";
choices[25][2] = "A Doctor";
choices[25][3] = "A service vehicle";
answers[25] = choices[25][3];

questions[26] = "27) Countdown markers on primary routes and motorways represent what distance from the junction?";
choices[26] = new Array();
choices[26][0] = "300, 200 and 100 yards";
choices[26][1] = "30, 20 and 10 yards";
choices[26][2] = "300, 200 and 100 metres";
choices[26][3] = "1, 2 and 3 miles";
answers[26] = choices[26][0];

questions[27] = "28) What time gap should be between you and the vehicle in front in good conditions?";
choices[27] = new Array();
choices[27][0] = "1 second";
choices[27][1] = "2 seconds";
choices[27][2] = "3 seconds";
choices[27][3] = "4 seconds";
answers[27] = choices[27][1];

questions[28] = "29) In the wet, the braking distance is:";
choices[28] = new Array();
choices[28][0] = "2 times the normal distance";
choices[28][1] = "3 times the normal distance";
choices[28][2] = "4 times the normal distance";
choices[28][3] = "5 times the normal distance";
answers[28] = choices[28][0];

questions[29] = "30) In the ice, the braking distance is";
choices[29] = new Array();
choices[29][0] = "5 times the normal distance";
choices[29][1] = "10 times the normal distance";
choices[29][2] = "15 times the normal distance";
choices[29][3] = "20 times the normal distance";
answers[29] = choices[29][1];

questions[30] = "31) What should you do if there are flashing red lights above all lanes on a motorway?";
choices[30] = new Array();
choices[30][0] = "Leave the motorway at the next exit";
choices[30][1] = "Stop on the hard shoulder";
choices[30][2] = "Slow down and stop at the lights";
choices[30][3] = "Stop at the next service station";
answers[30] = choices[30][2];

questions[31] = "32) What must be displayed in the windscreen of your car?";
choices[31] = new Array();
choices[31][0] = "Car insurance certificate";
choices[31][1] = "MOT certificate";
choices[31][2] = "'L' plates";
choices[31][3] = "Current vehicle excise license";
answers[31] = choices[31][3];

questions[32] = "33) Driving a car at 50mph, how metres per second would be travelling?";
choices[32] = new Array();
choices[32][0] = "12";
choices[32][1] = "22";
choices[32][2] = "34";
choices[32][3] = "48";
answers[32] = choices[32][1];

questions[33] = "34) What colour are tourist attraction signs?";
choices[33] = new Array();
choices[33][0] = "Brown";
choices[33][1] = "Green";
choices[33][2] = "Blue";
choices[33][3] = "Red";
answers[33] = choices[33][0];

questions[34] = "35) Cycle lanes are marked by either a broken white line or:";
choices[34] = new Array();
choices[34][0] = "A solid yellow line";
choices[34][1] = "A broken yellow line";
choices[34][2] = "No line";
choices[34][3] = "Solid white line";
answers[34] = choices[34][3];

questions[35] = "36) If you park at the side of the road at night, when would you use sidelights?";
choices[35] = new Array();
choices[35][0] = "If there are street lights";
choices[35][1] = "If the speed limit is greater than 30mph";
choices[35][2] = "In the countryside";
choices[35][3] = "If its a busy road";
answers[35] = choices[35][1];

questions[36] = "37) You have to slow down quickly on a motorway because of a hazard. You should:";
choices[36] = new Array();
choices[36][0] = "Use your hazard warning lights";
choices[36][1] = "Pull over to the hard shoulder";
choices[36][2] = "Move to the centre lane";
choices[36][3] = "Use your mobile phone for help";
answers[36] = choices[36][0];

questions[37] = "38) As soon as you join a motorway, you should:";
choices[37] = new Array();
choices[37][0] = "Keep in the left lane";
choices[37][1] = "Keep in the centre lane";
choices[37][2] = "Try to overtake";
choices[37][3] = "Use your horn to warn others of your presence";
answers[37] = choices[37][0];

questions[38] = "39) You approach a crossroads without any markings or signs. Who has priority?";
choices[38] = new Array();
choices[38][0] = "Vehicles from the right";
choices[38][1] = "Vehicles from the left";
choices[38][2] = "Vehicles ahead";
choices[38][3] = "Nobody";
answers[38] = choices[38][3];

questions[39] = "40) You must not use your horn:";
choices[39] = new Array();
choices[39][0] = "Between the hours of 11:30pm and 7:00am";
choices[39][1] = "Between the hours of 10:30pm and 7:00am";
choices[39][2] = "After dark";
choices[39][3] = "After sunset";
answers[39] = choices[39][0];

questions[40] = "41) Coasting is when your vehicle is travelling in neutral or:";
choices[40] = new Array();
choices[40][0] = "When you are braking";
choices[40][1] = "Driving down a hill";
choices[40][2] = "When you drive with the clutch down";
choices[40][3] = "When you use no pedals";
answers[40] = choices[40][2];

questions[41] = "42) You can exceed the speed limit:";
choices[41] = new Array();
choices[41][0] = "When you really have to";
choices[41][1] = "Never";
choices[41][2] = "If a vehicle is driving dangerously close behind";
choices[41][3] = "If a pregnant woman is in the vehicle";
answers[41] = choices[41][1];

questions[42] = "43) Skidding is caused by:";
choices[42] = new Array();
choices[42][0] = "The driver";
choices[42][1] = "Bad weather";
choices[42][2] = "Worn tyres";
choices[42][3] = "Worn steering components";
answers[42] = choices[42][0];

questions[43] = "44) If you are dazzled by an oncoming vehicle, you should:";
choices[43] = new Array();
choices[43][0] = "Flash your headlights as a warning";
choices[43][1] = "Turn your headlights on full beam";
choices[43][2] = "Use your hazard warning lights";
choices[43][3] = "Slow down or if necessary stop";
answers[43] = choices[43][3];

questions[44] = "45) You are driving on a road with speed humps and the driver in front is driving slower than you. You should:";
choices[44] = new Array();
choices[44][0] = "Overtake when it is safe to do so";
choices[44][1] = "Stay behind";
choices[44][2] = "Flash your headlights";
choices[44][3] = "Use your horn";
answers[44] = choices[44][1];

questions[45] = "46) Vehicles carrying dangerous goods in packages will be marked with:";
choices[45] = new Array();
choices[45][0] = "Plain orange reflective plates";
choices[45][1] = "Plain red reflective plates";
choices[45][2] = "Plain green reflective plates";
choices[45][3] = "Red and orange reflective plates";
answers[45] = choices[45][0];

questions[46] = "47) If you are involved in an accident which causes damage or injury you must:";
choices[46] = new Array();
choices[46][0] = "Phone the emergency services";
choices[46][1] = "Go to the nearest Police station";
choices[46][2] = "Not stop";
choices[46][3] = "Stop";
answers[46] = choices[46][3];

questions[47] = "48) Before overtaking you must:";
choices[47] = new Array();
choices[47][0] = "Use your indicators";
choices[47][1] = "Check your mirrors";
choices[47][2] = "Use your horn";
choices[47][3] = "Flash your headlights";
answers[47] = choices[47][1];

questions[48] = "49) Who has priority if the traffic lights do not work?";
choices[48] = new Array();
choices[48][0] = "Nobody";
choices[48][1] = "Priority is given to vehicles approaching from the right";
choices[48][2] = "Priority is given to vehicles approaching from the left";
choices[48][3] = "Priority is given to vehicles approaching towards you";
answers[48] = choices[48][0];

questions[49] = "50) Other drivers may flash their headlights at you. This signal is used to:";
choices[49] = new Array();
choices[49][0] = "Warn of a Police car ahead checking for speeders";
choices[49][1] = "Warn of their presence";
choices[49][2] = "Warn you of a problem with your vehicle";
choices[49][3] = "Give you priority";
answers[49] = choices[49][1];




// response for getting 100%
response[0] = "Excellent, top marks! Well done! Lets hope you do the same on your real theory test.";
// response for getting 90% or more
response[1] = "Passed easily, congratulations!"
// response for getting 70% or more
response[2] = "Phew! You've just about passed! Try again to better your score!";
// response for getting over 50%
response[3] = "Oh no! So close! But you must get at least 43 out of 50 to pass.";
// response for getting 40% or more
response[4] = "Getting better, but you must get at least 43 questions correct to pass.";
// response for getting 20% or more
response[5] = "Sorry to say that you've failed. You Must get at least 43 correct to pass.";
// response for getting 10% or more
response[6] = "Sorry to say that you've failed. You Must get at least 43 correct to pass.";
// response for getting 9% or less
response[7] = "Sorry to say that you've failed. You Must get at least 43 correct to pass.";