var questions = new Array();
var choices = new Array();
var answers = new Array();
var response = new Array();

questions[0] = "1) Emergency telephones on motorways are normally situated:";
choices[0] = new Array();
choices[0][0] = "Approximately at half mile intervals on the hard shoulder";
choices[0][1] = "Approximately at one mile intervals on the hard shoulder";
choices[0][2] = "Approximately at 2 mile intervals on the hard shoulder";
choices[0][3] = "Approximately at 3 mile intervals on the hard shoulder";
answers[0] = choices[0][1];

questions[1] = "2) Its very dangerous to park in fog. If unavoidable you should:";
choices[1] = new Array();
choices[1][0] = "Leave your side lights on";
choices[1][1] = "Leave your dipped headlights on";
choices[1][2] = "Leave your high beam headlights on";
choices[1][3] = "Leave your fog lights on";
answers[1] = choices[1][0];

questions[2] = "3) If parking on an uphill you should:";
choices[2] = new Array();
choices[2][0] = "Leave your front wheels pointing towards the kerb";
choices[2][1] = "Leave your front wheels pointing away from the kerb";
choices[2][2] = "Leave your hazard warning lights on";
choices[2][3] = "Leave your sidelights on";
answers[2] = choices[2][1];

questions[3] = "4) If you breakdown on a level crossing, you should firstly:";
choices[3] = new Array();
choices[3][0] = "Get all passengers out of the vehicle and clear of the crossing";
choices[3][1] = "Phone the signalman";
choices[3][2] = "Put your hazard warning lights on";
choices[3][3] = "Phone the Police immediately";
answers[3] = choices[3][0];

questions[4] = "5) When cornering on snow or ice you should:";
choices[4] = new Array();
choices[4][0] = "Keep at a constant speed and use a high gear";
choices[4][1] = "Keep at a constant speed and use a low gear";
choices[4][2] = "Slow down quickly";
choices[4][3] = "Change down to a lower gear";
answers[4] = choices[4][0];

questions[5] = "6) Keeping your car well ventilated in the hot weather will:";
choices[5] = new Array();
choices[5][0] = "Be better for your engine cooling system";
choices[5][1] = "Avoid you getting drowsy";
choices[5][2] = "Keep your cars speed";
choices[5][3] = "Help with the odour of your car";
answers[5] = choices[5][1];

questions[6] = "7) A pedestrian hit by a car at 40mph will:";
choices[6] = new Array();
choices[6][0] = "Will probably be killed";
choices[6][1] = "Will probably survive";
choices[6][2] = "Will certainly be killed";
choices[6][3] = "Will certainly survive";
answers[6] = choices[6][0];

questions[7] = "8) Be careful of electric vehicles (i.e. trams and milk floats) because?";
choices[7] = new Array();
choices[7][0] = "They are noisier than other vehicles";
choices[7][1] = "They are more careless";
choices[7][2] = "They are quieter than other vehicles";
choices[7][3] = "They always have priority";
answers[7] = choices[7][2];

questions[8] = "9) Hitting a pedestrian at 20mph, there is only:";
choices[8] = new Array();
choices[8][0] = "1 in 10 chance that the pedestrian will be killed";
choices[8][1] = "1 in 20 chance that the pedestrian will be killed";
choices[8][2] = "a slim chance that the pedestrian will be killed";
choices[8][3] = "1 in 30 chance that the pedestrian will be killed";
answers[8] = choices[8][1];

questions[9] = "10) Your stopping distance in icy conditions is increased by:";
choices[9] = new Array();
choices[9][0] = "4 times the normal distance";
choices[9][1] = "6 times the normal distance";
choices[9][2] = "8 times the normal distance";
choices[9][3] = "10 times the normal distance";
answers[9] = choices[9][3];

questions[10] = "11) When parking at night on a road with a higher speed limit than 30 mph, you should:";
choices[10] = new Array();
choices[10][0] = "Leave your dipped headlights on";
choices[10][1] = "Leave your hazard warning lights on";
choices[10][2] = "Leave your side lights/parking lights on";
choices[10][3] = "Always turn off your lights to avoid confusing other road users";
answers[10] = choices[10][2];

questions[11] = "12) You notice an obstruction in the road ahead on a motorway, you would:";
choices[11] = new Array();
choices[11][0] = "Stop on the hard shoulder and very quickly go and move the obstruction";
choices[11][1] = "Stop at the next emergency telephone and call the Police";
choices[11][2] = "Phone the Police on your mobile phone";
choices[11][3] = "Hold your mobile phone but put it on loud speaker and phone the Police";
answers[11] = choices[11][1];

questions[12] = "13) You are driving along a road but have not noticed any speed limit signs. You can tell the speed limit is 30mph because:";
choices[12] = new Array();
choices[12][0] = "Street lights are less than 200 metres apart";
choices[12][1] = "There are houses near by";
choices[12][2] = "There are traffic lights";
choices[12][3] = "There is a pavement";
answers[12] = choices[12][0];

questions[13] = "14) The 2 second rule in the wet turns into:";
choices[13] = new Array();
choices[13][0] = "4 second rule";
choices[13][1] = "6 second rule";
choices[13][2] = "8 second rule";
choices[13][3] = "10 second rule";
answers[13] = choices[13][0];

questions[14] = "15) Icy roads are often more slippery:";
choices[14] = new Array();
choices[14][0] = "Once its been freezing for some time";
choices[14][1] = "When it starts to thaw";
choices[14][2] = "Winter time";
choices[14][3] = "In Scotland";
answers[14] = choices[14][1];

questions[15] = "16) When turning at a junction, the first action you should take is:";
choices[15] = new Array();
choices[15][0] = "Slow down";
choices[15][1] = "Use your indicators";
choices[15][2] = "Change position";
choices[15][3] = "Check your mirrors";
answers[15] = choices[15][3];

questions[16] = "17) At roundabouts you should always give way to:";
choices[16] = new Array();
choices[16][0] = "The right unless road signs or markings tell you otherwise";
choices[16][1] = "The left unless road signs or markings tell you otherwise";
choices[16][2] = "To larger vehicles";
choices[16][3] = "To pedestrians";
answers[16] = choices[16][0];

questions[17] = "18) On approach to a right hand bend, you should normally keep to the:";
choices[17] = new Array();
choices[17][0] = "To the left for a better view around the bend";
choices[17][1] = "To the right for a better view around the bend";
choices[17][2] = "To left for better speed around the bend";
choices[17][3] = "Towards the centre of the road to get around the bend quicker";
answers[17] = choices[17][0];

questions[18] = "19) When driving along a country road, which of the following are you most likely to meet heading towards you and for you to be more careful of?";
choices[18] = new Array();
choices[18][0] = "Motor cyclists";
choices[18][1] = "Pedestrians";
choices[18][2] = "Cyclists";
choices[18][3] = "Horse riders";
answers[18] = choices[18][1];

questions[19] = "20) You are at a Pelican crossing and the traffic light turns to green but there are still pedestrians crossing the road, you should:";
choices[19] = new Array();
choices[19][0] = "Wait for the pedestrians to finish crossing";
choices[19][1] = "Go around the pedestrians because you have a green light";
choices[19][2] = "Use your horn to hurry the pedestrians";
choices[19][3] = "Rev your engine to hurry the pedestrians";
answers[19] = choices[19][0];

questions[20] = "21) There is a cyclist in front of you and you want to take the next road on the left, you should:";
choices[20] = new Array();
choices[20][0] = "Overtake the cyclist and quickly turn left into the road";
choices[20][1] = "Drive alongside the cyclist, wait for your turn and then slow down and turn left";
choices[20][2] = "Use your horn as a warning, overtake and then left";
choices[20][3] = "Wait behind the cyclist and then turn left when safe";
answers[20] = choices[20][3];

questions[21] = "22) You are most likely to be affected by crosswinds, when:";
choices[21] = new Array();
choices[21][0] = "Driving on an open stretch of road";
choices[21][1] = "In Scotland";
choices[21][2] = "Narrow country roads";
choices[21][3] = "Long, straight roads";
answers[21] = choices[21][0];

questions[22] = "23) When joining a motorway, a driver should:";
choices[22] = new Array();
choices[22][0] = "Stop at the end of the acceleration lane and wait for a safe space to join the motorway";
choices[22][1] = "Adjust your speed according to the traffic on the motorway";
choices[22][2] = "Increase your speed faster than the vehicles on the motorway";
choices[22][3] = "Always drive to the end of the acceleration lane";
answers[22] = choices[22][1];

questions[23] = "24) When a bus or coach is signalling to move off from a stopped position you should:";
choices[23] = new Array();
choices[23][0] = "Overtake";
choices[23][1] = "Give way if you can";
choices[23][2] = "Increase speed";
choices[23][3] = "Flash your headlights";
answers[23] = choices[23][1];

questions[24] = "25) You have to stop for a school crossing patrol:";
choices[24] = new Array();
choices[24][0] = "Always";
choices[24][1] = "During school term";
choices[24][2] = "Sometimes, but you dont always have to";
choices[24][3] = "If there are flashing amber lights";
answers[24] = choices[24][0];

questions[25] = "26) Who has priority if the traffic lights at a crossroads are not working?";
choices[25] = new Array();
choices[25][0] = "Vehicles on the main road";
choices[25][1] = "Vehicles on the right";
choices[25][2] = "Vehicles on the left";
choices[25][3] = "Nobody";
answers[25] = choices[25][3];

questions[26] = "27) If someone overtakes you and moves in front of you, you should:";
choices[26] = new Array();
choices[26][0] = "Drop back and to maintain a 2 second gap";
choices[26][1] = "Drive close to the car in front to show your anger";
choices[26][2] = "Use your horn as a warning";
choices[26][3] = "Stop on the left in a safe place";
answers[26] = choices[26][0];

questions[27] = "28) The extreme lane on the right of a motorway with four lanes is used for:";
choices[27] = new Array();
choices[27][0] = "Emergency vehicles";
choices[27][1] = "Service vehicles";
choices[27][2] = "Fast cars";
choices[27][3] = "Overtaking";
answers[27] = choices[27][3];

questions[28] = "29) You've driven through a ford, how will you dry your brakes?";
choices[28] = new Array();
choices[28][0] = "Stop on the left in a safe place and wait for them to dry";
choices[28][1] = "Drive slowly while braking gently";
choices[28][2] = "Dry them with a clean dry cloth";
choices[28][3] = "Drive faster so that the air can dry them quicker";
answers[28] = choices[28][1];

questions[29] = "30) The car behind is driving too close, what should you do?";
choices[29] = new Array();
choices[29][0] = "Brake, so that they can see your brake lights";
choices[29][1] = "Ease off speed to increase the gap in front of you";
choices[29][2] = "Drive extra carefully";
choices[29][3] = "Speed up slightly but not exceeding the speed limit";
answers[29] = choices[29][1];

questions[30] = "31) More care should be taken when overtaking at night or if visibilty is poor because:";
choices[30] = new Array();
choices[30][0] = "Its harder to judge speed and distance";
choices[30][1] = "Other vehicles may drive faster";
choices[30][2] = "You might skid easier";
choices[30][3] = "Headlights may dazzle you";
answers[30] = choices[30][0];

questions[31] = "32) When towing, the extra length will affect you when you:";
choices[31] = new Array();
choices[31][0] = "Are accelerating and braking";
choices[31][1] = "Are on a motorway";
choices[31][2] = "Are overtaking and manoeuvring";
choices[31][3] = "Are driving at a constant speed";
answers[31] = choices[31][2];

questions[32] = "33) When you are driving on a motorway and its been raining, there is normally surface spray. You should:";
choices[32] = new Array();
choices[32][0] = "Use your sidelights";
choices[32][1] = "Use your fog lights";
choices[32][2] = "Use your hazard warning lights";
choices[32][3] = "Use your headlights";
answers[32] = choices[32][3];

questions[33] = "34) When towing, the extra weight will affect you when you:";
choices[33] = new Array();
choices[33][0] = "Are accelerating and braking";
choices[33][1] = "Are on a motorway";
choices[33][2] = "Are overtaking and manoeuvring";
choices[33][3] = "Are driving at a constant speed";
answers[33] = choices[33][0];

questions[34] = "35) Brake fade can significantly reduce the effectiveness of the brakes. It is normally caused by:";
choices[34] = new Array();
choices[34][0] = "The buildup of heat";
choices[34][1] = "The buildup of brake dust";
choices[34][2] = "Wearing down of the brake pads";
choices[34][3] = "Low brake fluid";
answers[34] = choices[34][0];

questions[35] = "36) A child of under 3 years of age is travelling in the front passenger seat. Who is responsible for them wearing a seat belt?";
choices[35] = new Array();
choices[35][0] = "Parent";
choices[35][1] = "Child";
choices[35][2] = "Driver";
choices[35][3] = "They Shouldn't be sitting in the front seat";
answers[35] = choices[35][2];

questions[36] = "37) You stall you vehicle in the middle of a level crossing and you can't restart it. You should:";
choices[36] = new Array();
choices[36][0] = "Use your mobile to phone for help";
choices[36][1] = "Keep trying to restart your vehicle";
choices[36][2] = "Get out and try to wave at the train to slow it down";
choices[36][3] = "Get out of the vehicle to safe distance";
answers[36] = choices[36][3];

questions[37] = "38) Holding down the clutch or driving along in neutral is called:";
choices[37] = new Array();
choices[37][0] = "Rolling";
choices[37][1] = "Coasting";
choices[37][2] = "Speeding";
choices[37][3] = "Brake fade";
answers[37] = choices[37][1];

questions[38] = "39) Cars must first have an MOT certificate when they are:";
choices[38] = new Array();
choices[38][0] = "Three years old";
choices[38][1] = "Two years old";
choices[38][2] = "One year old";
choices[38][3] = "First made";
answers[38] = choices[38][0];

questions[39] = "40) A 'Road Tax Disc' or Vehicle excise duty must always:";
choices[39] = new Array();
choices[39][0] = "Be kept with you";
choices[39][1] = "Be kept in the glove compartment";
choices[39][2] = "Be kept in your vehicle but well hidden";
choices[39][3] = "Be displayed on your windscreen";
answers[39] = choices[39][3];

questions[40] = "41) The cost of your vehicle insurance may go down when you:";
choices[40] = new Array();
choices[40][0] = "Pass your driving test first time";
choices[40][1] = "Are over the age of 17";
choices[40][2] = "Take the Pass Plus course";
choices[40][3] = "Are under 24";
answers[40] = choices[40][2];

questions[41] = "42) The Pass Plus course has been created for new drivers. The main purpose is:";
choices[41] = new Array();
choices[41][0] = "To pracice driving on the motorway";
choices[41][1] = "To build-up and improve on your basic driving skills";
choices[41][2] = "To get used to driving without any instructions";
choices[41][3] = "To allow you to get used to carrying passengers";
answers[41] = choices[41][1];

questions[42] = "43) You are signalling right to turn at a busy junction. How could you reinforce your signal to others?";
choices[42] = new Array();
choices[42][0] = "Use an arm signal";
choices[42][1] = "Flash your headlights";
choices[42][2] = "Use your hazard warning lights";
choices[42][3] = "By slowing down";
answers[42] = choices[42][0];

questions[43] = "44) A Police car behind flashes their headlights and points to the left. You should:";
choices[43] = new Array();
choices[43][0] = "Stop immediately";
choices[43][1] = "Take the next turn on the left and stop";
choices[43][2] = "Stop on the left";
choices[43][3] = "Move over to the left to allow them to go past";
answers[43] = choices[43][2];

questions[44] = "45) Signs giving orders are mostly in:";
choices[44] = new Array();
choices[44][0] = "A triangle";
choices[44][1] = "A circle";
choices[44][2] = "A rectangle";
choices[44][3] = "A hexagon";
answers[44] = choices[44][1];

questions[45] = "46) A horse rider is signalling right but keeping in the left lane. You should:";
choices[45] = new Array();
choices[45][0] = "Overtake carefully, leaving plenty of room";
choices[45][1] = "Speed up to get past quickly";
choices[45][2] = "Keep close behind";
choices[45][3] = "Stay well back from the horse";
answers[45] = choices[45][3];

questions[46] = "47) Another driver does something that annoys you. You should:";
choices[46] = new Array();
choices[46][0] = "Try not to get upset and not to react";
choices[46][1] = "Flash your headlights";
choices[46][2] = "USe your horn as a warning signal";
choices[46][3] = "Wave your arm out of the window";
answers[46] = choices[46][0];

questions[47] = "48) You think the driver of the vehicle in front has forgotton to switch off their left signal. You should:";
choices[47] = new Array();
choices[47][0] = "Overtake carefully";
choices[47][1] = "Flash your headlights";
choices[47][2] = "Use your horn";
choices[47][3] = "Stay behind and not to overtake";
answers[47] = choices[47][3];

questions[48] = "49) In hot weather the road surface can get soft. This can affect your steering and:";
choices[48] = new Array();
choices[48][0] = "Your braking";
choices[48][1] = "Your fuel consumption";
choices[48][2] = "Your exhaust emmisions";
choices[48][3] = "Your speed";
answers[48] = choices[48][0];

questions[49] = "50) You are driving at night in a country road without any street lights. Another road user approaches, you should:";
choices[49] = new Array();
choices[49][0] = "Flash your headlights";
choices[49][1] = "Use high beam headlights";
choices[49][2] = "Slow down";
choices[49][3] = "Use dipped headlights";
answers[49] = choices[49][3];


// 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 43correct 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.";