var questions = new Array();
var choices = new Array();
var answers = new Array();
var response = new Array();

questions[0] = "1) When you are following a large vehicle, you should keep well back from because:";
choices[0] = new Array();
choices[0][0] = "Large vehicle drivers are often more careless";
choices[0][1] = "Large vehicles have no signals";
choices[0][2] = "You can get a better view of the road ahead";
choices[0][3] = "They might start reversing";
answers[0] = choices[0][2];

questions[1] = "2) You car insurance has a 100 pounds excess, what does this mean?";
choices[1] = new Array();
choices[1][0] = "You will have to pay the first 100 pound of any claim that you make";
choices[1][1] = "You get a 100 pound discount on next years premium";
choices[1][2] = "The other party in the accident would pay the first 100 pound of a claim";
choices[1][3] = "You have to pay 100 pound extra when taking out your car insurance";
answers[1] = choices[1][0];

questions[2] = "3) You get lost and find yourself driving down a one-way street. You should:";
choices[2] = new Array();
choices[2][0] = "Stop on the left and do a u-turn";
choices[2][1] = "Drive to the end of the road";
choices[2][2] = "Stop on the left and reverse back to the start of the road";
choices[2][3] = "Turn around by reversing in to a driveway";
answers[2] = choices[2][1];

questions[3] = "4) Humps, chicanes, road narrowing are all:";
choices[3] = new Array();
choices[3][0] = "Hazards";
choices[3][1] = "Traffic calming";
choices[3][2] = "Developing hazards";
choices[3][3] = "Pedestrian crossings";
answers[3] = choices[3][1];

questions[4] = "5) Missing out some gears when changing saves fuel. This is achieved by reducing:";
choices[4] = new Array();
choices[4][0] = "Acceleration";
choices[4][1] = "Coasting";
choices[4][2] = "Rolling";
choices[4][3] = "Braking";
answers[4] = choices[4][0];

questions[5] = "6) Anti-lock brakes are very useful when you are:";
choices[5] = new Array();
choices[5][0] = "Accelerating excessively";
choices[5][1] = "Coasting";
choices[5][2] = "Slipping on ice";
choices[5][3] = "Braking excessively";
answers[5] = choices[5][3];

questions[6] = "7) Before you turn left you should:";
choices[6] = new Array();
choices[6][0] = "Move a bit to the right first to get a better angle for the turn";
choices[6][1] = "Give an arm signal";
choices[6][2] = "Stop";
choices[6][3] = "Move well to the left";
answers[6] = choices[6][3];

questions[7] = "8) What should you NOT do at the scene of an accident?";
choices[7] = new Array();
choices[7][0] = "Offer someone a drink";
choices[7][1] = "Talk to anyone";
choices[7][2] = "Offer someone a cigarette";
choices[7][3] = "Offer someone a lift";
answers[7] = choices[7][2];

questions[8] = "9) You have to stop your vehicle in an emergency on a wet road. You should:";
choices[8] = new Array();
choices[8][0] = "Keep both arms on the steering wheel";
choices[8][1] = "Hope for the best";
choices[8][2] = "Pump your brakes";
choices[8][3] = "Use the handbrake";
answers[8] = choices[8][0];

questions[9] = "10) If your vehicle is fitted with anti-lock brakes and you get in to a skid you can:";
choices[9] = new Array();
choices[9][0] = "Steer with better control";
choices[9][1] = "Spin the car around";
choices[9][2] = "Steer with worse control";
choices[9][3] = "Accelerate";
answers[9] = choices[9][0];

questions[10] = "11) Before you turn left you should:";
choices[10] = new Array();
choices[10][0] = "Move a bit to the right first to get a better angle for the turn";
choices[10][1] = "Give an arm signal";
choices[10][2] = "Stop";
choices[10][3] = "Move well to the left";
answers[10] = choices[10][3];

questions[10] = "11) You are driving in slow moving traffic on a motorway, before changing lanes you should watch for:";
choices[10] = new Array();
choices[10][0] = "Bicycles filtering through the traffic";
choices[10][1] = "Motorcyclists filtering through the traffic";
choices[10][2] = "Pedestrians";
choices[10][3] = "Fast cars";
answers[10] = choices[10][1];

questions[11] = "12) Before turning in to a driveway, you should pay special attention to:";
choices[11] = new Array();
choices[11][0] = "Cars overtaking";
choices[11][1] = "Pedestrians";
choices[11][2] = "Cars behind you";
choices[11][3] = "Your steering method for a precise turn";
answers[11] = choices[11][1];

questions[12] = "13) In windy conditions you should take extra care when:";
choices[12] = new Array();
choices[12][0] = "Driving behind a large vehicle";
choices[12][1] = "Driving on country roads near trees";
choices[12][2] = "Overtaking other cars";
choices[12][3] = "Overtaking cyclists";
answers[12] = choices[12][3];

questions[13] = "14) It is illegal to drive under the influence of drugs. The effects of drugs last up to:";
choices[13] = new Array();
choices[13][0] = "24 hours";
choices[13][1] = "48 hours";
choices[13][2] = "72 hours";
choices[13][3] = "144 hours";
answers[13] = choices[13][2];

questions[14] = "15) A long lorry in front of you signals left but moves to the right, you should:";
choices[14] = new Array();
choices[14][0] = "Drive past the lorry because they have given incorrect signals";
choices[14][1] = "Slow down and give it room";
choices[14][2] = "Overtake on the right";
choices[14][3] = "Sound your horn";
answers[14] = choices[14][1];

questions[15] = "16) Using a mobile phone is illegal. The chances of you having an accident when using one is:";
choices[15] = new Array();
choices[15][0] = "Slim";
choices[15][1] = "Increased 2 times";
choices[15][2] = "Increased 3 times";
choices[15][3] = "Increased 4 times";
answers[15] = choices[15][3];

questions[16] = "17) If you have to park your car on a foggy day, you should:";
choices[16] = new Array();
choices[16][0] = "Leave your sidelights on";
choices[16][1] = "Leave your dipped headlights on";
choices[16][2] = "Leave your fog lights on";
choices[16][3] = "Leave your hazard lights on";
answers[16] = choices[16][0];

questions[17] = "18) There has been an accident. The driver is suffering from shock. You should reassure them and:";
choices[17] = new Array();
choices[17][0] = "Leave them in peace";
choices[17][1] = "Offer them a cigarette";
choices[17][2] = "Investigate who was at fault";
choices[17][3] = "not leave them alone";
answers[17] = choices[17][3];

questions[18] = "19) When driving through a tunnel you should";
choices[18] = new Array();
choices[18][0] = "Look out for variable message signs";
choices[18][1] = "Turn your hazard lights on";
choices[18][2] = "Turn on your full beam headlights";
choices[18][3] = "Slow down";
answers[18] = choices[18][0];

questions[19] = "20) On a clearway you must not stop";
choices[19] = new Array();
choices[19][0] = "At any time";
choices[19][1] = "During school time";
choices[19][2] = "Before 7pm";
choices[19][3] = "Before 10pm";
answers[19] = choices[19][0];

questions[20] = "21) You're looking for somewhere to park. The only spaces left are for disabled use, you can:";
choices[20] = new Array();
choices[20][0] = "Park there if its important";
choices[20][1] = "Park there if you are only going to be 30 minutes maximum";
choices[20][2] = "Park there if permitted";
choices[20][3] = "Park there if you are visiting a Police station";
answers[20] = choices[20][2];

questions[21] = "22) You are driving at night with full beam headlights on. A vehicle is overtaking you. You should dip your lights:";
choices[21] = new Array();
choices[21][0] = "As soon as the vehicle passes you";
choices[21][1] = "Before the vehicle passes you";
choices[21][2] = "Once the vehicle behind indicates to overtake";
choices[21][3] = "Once the vehicle has overtaken and driven further in front";
answers[21] = choices[21][0];

questions[22] = "23) You are on a narrow road that is only wide enough for one vehicle. There is a vehicle coming towards you. You should:";
choices[22] = new Array();
choices[22][0] = "Flash your headlights";
choices[22][1] = "Stop";
choices[22][2] = "Give an arm signal";
choices[22][3] = "Pull in to a passing place on the left";
answers[22] = choices[22][3];

questions[23] = "24) When can you reverse from a side road into a main road?";
choices[23] = new Array();
choices[23][0] = "Never";
choices[23][1] = "After 7pm";
choices[23][2] = "If its quiet";
choices[23][3] = "If someone makes sure its safe";
answers[23] = choices[23][0];

questions[24] = "25) Where can you overtake on a one-way street?";
choices[24] = new Array();
choices[24][0] = "Either on the left or the right";
choices[24][1] = "Only on the right side";
choices[24][2] = "Never its one-way";
choices[24][3] = "Only in daylight";
answers[24] = choices[24][0];

questions[25] = "26) You are driving on a motorway. You can:";
choices[25] = new Array();
choices[25][0] = "Use any lane to overtake";
choices[25][1] = "Overtake on the left";
choices[25][2] = "Overtake on the left if the traffic on the right is moving slower than you are in slow congestion";
choices[25][3] = "Overtake on the left if the right hand lane is closed";
answers[25] = choices[25][2];

questions[26] = "27) There is a tractor ahead of you. You wish to overtake but you are not sure if it's safe. You should:";
choices[26] = new Array();
choices[26][0] = "Flash your head lights as a warning";
choices[26][1] = "Get closer to the tractor for a better look";
choices[26][2] = "Not overtake if in doubt";
choices[26][3] = "Use your horn";
answers[26] = choices[26][2];

questions[27] = "28) Who is responsible for making sure that your vehicle is not overloaded?";
choices[27] = new Array();
choices[27][0] = "Whoever is loading the vehicle";
choices[27][1] = "The driver";
choices[27][2] = "Your passengers";
choices[27][3] = "The Police";
answers[27] = choices[27][1];

questions[28] = "29) When approaching a contraflow system, you should:";
choices[28] = new Array();
choices[28][0] = "Choose an appropriate lane early";
choices[28][1] = "Change lates when you want to";
choices[28][2] = "Change lanes to avoid congestion";
choices[28][3] = "Increase speed to match other road users";
answers[28] = choices[28][0];

questions[29] = "30) You are towing a small trailer on a motorway. You must not exceed 60 mph and:";
choices[29] = new Array();
choices[29][0] = "You must not go slower than 50mph";
choices[29][1] = "You must not change lanes";
choices[29][2] = "Use only the left and centre lanes";
choices[29][3] = "Use only the left, centre and right lanes ";
answers[29] = choices[29][2];

questions[30] = "31) Passengers can ride in a caravan that is being towed when?";
choices[30] = new Array();
choices[30][0] = "Driving under 30mph";
choices[30][1] = "Driving in the country";
choices[30][2] = "On a motorway";
choices[30][3] = "Never";
answers[30] = choices[30][3];

questions[31] = "32) Another driver does something that upsets you. You should:";
choices[31] = new Array();
choices[31][0] = "Try not to react";
choices[31][1] = "Speed up";
choices[31][2] = "Call the Police";
choices[31][3] = "Flash your headlights";
answers[31] = choices[31][0];

questions[32] = "33) You are driving with your fog lights switched on. The fog has now cleared. You should:";
choices[32] = new Array();
choices[32][0] = "Leave just your rear fog lights on";
choices[32][1] = "Turn them off";
choices[32][2] = "Leave just your front fog lights on";
choices[32][3] = "Switch your main beam lights on";
answers[32] = choices[32][1];

questions[33] = "34) You are on a narrow road. A slow moving vehicle ahead has been signalling right for some time. You should:";
choices[33] = new Array();
choices[33][0] = "Wait for the signal to be cancelled before overtaking";
choices[33][1] = "Flash your headlights";
choices[33][2] = "Overtake";
choices[33][3] = "Use your horn and then overtake";
answers[33] = choices[33][0];

questions[34] = "35) You forget to switch off your fog lights once the fog has cleared, this may:";
choices[34] = new Array();
choices[34][0] = "Affect battery power";
choices[34][1] = "Be breaking the law";
choices[34][2] = "Affect engine power";
choices[34][3] = "Use more fuel";
answers[34] = choices[34][1];

questions[35] = "36) You go to a party and need to drive a short time after. What precaution should you take?";
choices[35] = new Array();
choices[35][0] = "Drink just one alcoholic drink";
choices[35][1] = "Drink only weak alcoholic drinks";
choices[35][2] = "Drink only alcoholic drinks that are mixed with Lemonade";
choices[35][3] = "Avoid alcoholic drinks";
answers[35] = choices[35][3];

questions[36] = "37) You have been convicted of driving whilst unfit through drink or drugs. This will affect the cost of: ";
choices[36] = new Array();
choices[36][0] = "Buying a car in the future";
choices[36][1] = "Road tax";
choices[36][2] = "Car insurance";
choices[36][3] = "MOT";
answers[36] = choices[36][2];

questions[37] = "38) You are driving along a road and an articulated lorry starts to emerge from a side road on your right. You should be prepared to:";
choices[37] = new Array();
choices[37][0] = "Slow down and give way";
choices[37][1] = "Speed up";
choices[37][2] = "Wave at the driver";
choices[37][3] = "Use your horn";
answers[37] = choices[37][0];

questions[38] = "39) You are approaching a busy juction when you notice that you are in the wrong lane for where you want to go. You should:";
choices[38] = new Array();
choices[38][0] = "Change lanes";
choices[38][1] = "Continue in that lane";
choices[38][2] = "Stop until its safe to change lanes";
choices[38][3] = "Use an arm signal to reinforce your right signal and then change lanes";
answers[38] = choices[38][1];

questions[39] = "40) Before overtaking on a motorway. You should:";
choices[39] = new Array();
choices[39][0] = "Check your speed";
choices[39][1] = "Check your blind spot";
choices[39][2] = "Check your rear view mirror";
choices[39][3] = "Slow down";
answers[39] = choices[39][1];

questions[40] = "41) Signs on a motorway are:";
choices[40] = new Array();
choices[40][0] = "Blue";
choices[40][1] = "Green";
choices[40][2] = "Red";
choices[40][3] = "All circular";
answers[40] = choices[40][0];

questions[41] = "42) Before opening your car door, you should look out especially for:";
choices[41] = new Array();
choices[41][0] = "Pedestrians";
choices[41][1] = "Car drivers";
choices[41][2] = "Lorry drivers";
choices[41][3] = "Cyclists";
answers[41] = choices[41][3];

questions[42] = "43) Zig-zag lines on the side of the road mean?";
choices[42] = new Array();
choices[42][0] = "Parking permitted after 7pm";
choices[42][1] = "No parking";
choices[42][2] = "One-way street";
choices[42][3] = "That its a 30mph speed limit";
answers[42] = choices[42][1];

questions[43] = "44) You should never overtake a cyclist:";
choices[43] = new Array();
choices[43][0] = "Before turning left";
choices[43][1] = "Before turning right";
choices[43][2] = "In a one-way street";
choices[43][3] = "In a residential area";
answers[43] = choices[43][0];

questions[44] = "45) Brown signs are:";
choices[44] = new Array();
choices[44][0] = "Found on motorways";
choices[44][1] = "Round";
choices[44][2] = "Found on dual-carriageways";
choices[44][3] = "Information signs for tourist attractions";
answers[44] = choices[44][3];

questions[45] = "46) Turbulence in windy conditions is created by:";
choices[45] = new Array();
choices[45][0] = "Large vehicles";
choices[45][1] = "Motorcyclists";
choices[45][2] = "High speed Vehicles";
choices[45][3] = "Slow moving vehicles";
answers[45] = choices[45][0];

questions[46] = "47) Turbulence in windy conditions is particularly dangerous for:";
choices[46] = new Array();
choices[46][0] = "Car drivers";
choices[46][1] = "Motorcyclists";
choices[46][2] = "Everyone";
choices[46][3] = "Pedestrians";
answers[46] = choices[46][1];

questions[47] = "48) You are waiting to emerge out of a junction. A car on the main road from your right is indicating left to turn, you should:";
choices[47] = new Array();
choices[47][0] = "Take the opportunity and proceed";
choices[47][1] = "Apply the handbrake and wait";
choices[47][2] = "Wait and make sure that the vehicle is turning before proceeding";
choices[47][3] = "Emerge slowly before going completely";
answers[47] = choices[47][2];

questions[48] = "49) A pedestrian carrying a white cane with a red band or using a dog with a red and white harness maybe:";
choices[48] = new Array();
choices[48][0] = "Deaf and blind";
choices[48][1] = "Deaf";
choices[48][2] = "Blind";
choices[48][3] = "Partially sighted";
answers[48] = choices[48][0];

questions[49] = "50) If you see a motorcyclist look over their right shoulder, they may:";
choices[49] = new Array();
choices[49][0] = "Turn left";
choices[49][1] = "Be careless";
choices[49][2] = "Turn right";
choices[49][3] = "Be distracted";
answers[49] = choices[49][2];


// response for getting 100%
response[0] = "Excellent, top marks! Well done! Lets hope you do the same on your real theory test! Now try our other tests!";
// 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.";