var questions = new Array();
var choices = new Array();
var answers = new Array();
var response = new Array();

questions[0] = "1) A hazard in the road is:";
choices[0] = new Array();
choices[0][0] = "A situation which actually causes you to change speed or course";
choices[0][1] = "Always warned of by a road sign";
choices[0][2] = "A pedestrian";
choices[0][3] = "A situation which could cause you to change speed or course";
answers[0] = choices[0][3];

questions[1] = "2) A stop line is:";
choices[1] = new Array();
choices[1][0] = "A double dashed line";
choices[1][1] = "A single dashed line";
choices[1][2] = "A solid white line";
choices[1][3] = "A solid yellow line";
answers[1] = choices[1][2];

questions[2] = "3) A puffin pedestrian crossing has:";
choices[2] = new Array();
choices[2][0] = "Sensors";
choices[2][1] = "Black and white lines on the road";
choices[2][2] = "Flashing amber light as part of its traffic light sequence";
choices[2][3] = "Cyclists can cross as well as pedestrians";
answers[2] = choices[2][0];

questions[3] = "4) A pegasus pedestrian crossing allows:";
choices[3] = new Array();
choices[3][0] = "Cyclists as well as pedestrians to cross";
choices[3][1] = "Elderly pedestrians to cross slower";
choices[3][2] = "Just pedestrians";
choices[3][3] = "Horses and pedestrians to cross";
answers[3] = choices[3][3];

questions[4] = "5) When giving mouth to mouth, you should only stop when:";
choices[4] = new Array();
choices[4][0] = "You think the emergency services have arrived";
choices[4][1] = "When the the casualty starts to breathe without any further help";
choices[4][2] = "When you think they have died";
choices[4][3] = "When the casulty has turned cold";
answers[4] = choices[4][1];

questions[5] = "6) You've just overtaken another car. You should:";
choices[5] = new Array();
choices[5][0] = "Stay on the right untill you are 8 car lenghts ahead";
choices[5][1] = "Move back to the left as soon as you are past the car";
choices[5][2] = "Move back to the left when you see the other car in your mirror";
choices[5][3] = "Exceed the speed limit briefly to get well ahead";
answers[5] = choices[5][2];

questions[6] = "7) Which of these would most likely impair your judgement?";
choices[6] = new Array();
choices[6][0] = "Prescription drugs";
choices[6][1] = "Smoking";
choices[6][2] = "Wearing glasses";
choices[6][3] = "Radio on";
answers[6] = choices[6][0];

questions[7] = "8) When are you allowed to use the motorway hard shoulder?";
choices[7] = new Array();
choices[7][0] = "Break down";
choices[7][1] = "For a break so that you don't drive tired";
choices[7][2] = "Answer your mobile phone";
choices[7][3] = "Quick map reading";
answers[7] = choices[7][0];

questions[8] = "9) When being overtaked by another vehicle you must:";
choices[8] = new Array();
choices[8][0] = "Not accelerate";
choices[8][1] = "Move more left";
choices[8][2] = "Slow right down";
choices[8][3] = "Look straight ahead";
answers[8] = choices[8][0];

questions[9] = "10) Who is responsible for ensuring that 14 year old passengers wear seat belts?";
choices[9] = new Array();
choices[9][0] = "Driver";
choices[9][1] = "Parents";
choices[9][2] = "Police";
choices[9][3] = "They are responsible";
answers[9] = choices[9][3];

questions[10] = "11) Making a journey in foggy conditions, you should:";
choices[10] = new Array();
choices[10][0] = "Use high beam headlights";
choices[10][1] = "Leave lots of time for your journey";
choices[10][2] = "Not drive";
choices[10][3] = "USe dipped headlights";
answers[10] = choices[10][1];

questions[11] = "12) The law requires you to turn on your lights:";
choices[11] = new Array();
choices[11][0] = "Only when other drivers do so";
choices[11][1] = "Between 11:30pm and 7am";
choices[11][2] = "Before dark";
choices[11][3] = "At lighting-up time";
answers[11] = choices[11][3];

questions[12] = "13) You would normally find blue road signs:";
choices[12] = new Array();
choices[12][0] = "For tourist attractions";
choices[12][1] = "Motorways";
choices[12][2] = "Dual carriageways";
choices[12][3] = "Country roads";
answers[12] = choices[12][1];

questions[13] = "14) You may park on the right-hand side of the road at night:";
choices[13] = new Array();
choices[13][0] = "As long as its safe";
choices[13][1] = "Only if its more than 10 metres from a junction";
choices[13][2] = "As long as there is street lights";
choices[13][3] = "In a one-way street";
answers[13] = choices[13][3];

questions[14] = "15) A flashing amber light on a pelican crossing advises that:";
choices[14] = new Array();
choices[14][0] = "Go";
choices[14][1] = "Stop";
choices[14][2] = "Get ready to go";
choices[14][3] = "Give way to pedestrians on the crossing";
answers[14] = choices[14][3];

questions[15] = "16) When overtaking a motorcyclist or cyclist you must:";
choices[15] = new Array();
choices[15][0] = "Leave as much room as you would for a car";
choices[15][1] = "First flash your lights as a warning";
choices[15][2] = "Go back to the right as soon as possible";
choices[15][3] = "Use a clear arm signal";
answers[15] = choices[15][0];

questions[16] = "17) At a zebra crossing with a central island, you must:";
choices[16] = new Array();
choices[16][0] = "Stop for any pedestrian";
choices[16][1] = "Stop for any pedstrian on your side of the road";
choices[16][2] = "Stop for any pedestrian on the other side of the island";
choices[16][3] = "Just slow down";
answers[16] = choices[16][1];

questions[17] = "18) When turning right at a crossroads, where opposing cars vehicles are also turning right, vision is restricted when:";
choices[17] = new Array();
choices[17][0] = "Nearside to nearside";
choices[17][1] = "Nearside to offside";
choices[17][2] = "Offside to offside";
choices[17][3] = "Offside to nearside";
answers[17] = choices[17][0];

questions[18] = "19) If you have been driving for more than two years, you would get disqualified from driving if you have:";
choices[18] = new Array();
choices[18][0] = "More than 10 points on your license";
choices[18][1] = "More than 12 points on your license";
choices[18][2] = "More than 14 points on your license";
choices[18][3] = "More than 15 points on your license";
answers[18] = choices[18][1];

questions[19] = "20) It is against the law to drive without working lamps:";
choices[19] = new Array();
choices[19][0] = "When its dark";
choices[19][1] = "At any time";
choices[19][2] = "On a motorway";
choices[19][3] = "Except when you really have to drive";
answers[19] = choices[19][1];

questions[20] = "21) If you are involved in an accident and can't give your name, address and car registeration number at the scene, you must report the accident to the Police within:";
choices[20] = new Array();
choices[20][0] = "One hour";
choices[20][1] = "One month";
choices[20][2] = "Two months";
choices[20][3] = "Twenty four hours";
answers[20] = choices[20][3];

questions[21] = "22) When driving downhill, low gears are best because:";
choices[21] = new Array();
choices[21][0] = "It helps keep the car slow with engine braking";
choices[21][1] = "It helps prevent wheelspin";
choices[21][2] = "The car coasts";
choices[21][3] = "It leaves the brake lights on";
answers[21] = choices[21][0];

questions[22] = "23) The term 'blindspot' refers to:";
choices[22] = new Array();
choices[22][0] = "The area that you can see in your mirrors";
choices[22][1] = "An area in the road which you can't see ahead";
choices[22][2] = "Top of a hill";
choices[22][3] = "The area that you can't see in your mirrors";
answers[22] = choices[22][3];

questions[23] = "24) If you break down at night, where must you not stand and wait apart from at the rear of your car?";
choices[23] = new Array();
choices[23][0] = "In the way of pedestrians";
choices[23][1] = "At the front of your vehicle";
choices[23][2] = "On the road side of your vehicle";
choices[23][3] = "On the grass";
answers[23] = choices[23][2];

questions[24] = "25) The age group that is most likely to be involved in an accident is:";
choices[24] = new Array();
choices[24][0] = "55 year olds and over";
choices[24][1] = "40-50 year olds";
choices[24][2] = "24-30 year olds";
choices[24][3] = "17-25 year olds";
answers[24] = choices[24][3];

questions[25] = "26) You are more likely to increase fuel consumption if:";
choices[25] = new Array();
choices[25][0] = "You accelerate harshly or rapidly";
choices[25][1] = "You brake harshly";
choices[25][2] = "Steer sharply";
choices[25][3] = "Drive at a constant speed";
answers[25] = choices[25][0];

questions[26] = "27) Speed humps are designed to:";
choices[26] = new Array();
choices[26][0] = "Drive around to increase your steering skills and avoid the hump";
choices[26][1] = "Make you slow down and then accelerate";
choices[26][2] = "Slow you down";
choices[26][3] = "Make you brake sharply";
answers[26] = choices[26][2];

questions[27] = "28) What does ABS, as in ABS brakes stand for?";
choices[27] = new Array();
choices[27][0] = "Anti-braking system";
choices[27][1] = "Anti-lock braking system";
choices[27][2] = "All brakes system";
choices[27][3] = "All brake stand";
answers[27] = choices[27][1];

questions[28] = "29) When driving at night, What part of your car should be particularly clean?";
choices[28] = new Array();
choices[28][0] = "Windscreen";
choices[28][1] = "Mirrors";
choices[28][2] = "Tyres";
choices[28][3] = "Bumper";
answers[28] = choices[28][0];

questions[29] = "30) Apart from cornering quickly, how else could you skid your vehicle?";
choices[29] = new Array();
choices[29][0] = "Changing gear inappropriately";
choices[29][1] = "Harsh braking";
choices[29][2] = "Coasting with the clutch down";
choices[29][3] = "Coasting in neutral";
answers[29] = choices[29][1];

questions[30] = "31) Setting down or picking up passengers on a motorway is:";
choices[30] = new Array();
choices[30][0] = "Allowed between 7pm and 6:30am";
choices[30][1] = "Only permissible on the hard shoulder";
choices[30][2] = "Permissible near slip roads or large towns";
choices[30][3] = "Not permissible";
answers[30] = choices[30][3];

questions[31] = "32) If pedestrians are crossing the road in front of you, should you:";
choices[31] = new Array();
choices[31][0] = "Go round them";
choices[31][1] = "Give-way to them";
choices[31][2] = "Drive on as normal";
choices[31][3] = "Wave at them to cross and be careful";
answers[31] = choices[31][1];

questions[32] = "33) You are legally allowed to drive without a seat belt if:";
choices[32] = new Array();
choices[32][0] = "You are a delivery driver making frequent stops";
choices[32][1] = "you work for the Police";
choices[32][2] = "You have a medical excemtion certificate";
choices[32][3] = "Milkman";
answers[32] = choices[32][2];

questions[33] = "34) Apart from slowing down when you meet horses on the road, what else should you do?";
choices[33] = new Array();
choices[33][0] = "Use the horn as a warning";
choices[33][1] = "Give them plenty of space";
choices[33][2] = "Use an arm signal";
choices[33][3] = "Drive close to the horse to get it used to vehicles";
answers[33] = choices[33][1];

questions[34] = "35) What might the driver of an articulated lorry do before turning left at a junction?";
choices[34] = new Array();
choices[34][0] = "Swing out to the right";
choices[34][1] = "Sound the horn as a warning";
choices[34][2] = "Stop and reverse slightly";
choices[34][3] = "Drive up on the kerb";
answers[34] = choices[34][0];

questions[35] = "36) What is the main cause of heavy steering?";
choices[35] = new Array();
choices[35][0] = "Under-inflated tyres";
choices[35][1] = "Over-inflated tyres";
choices[35][2] = "Worn tyres";
choices[35][3] = "Wet road";
answers[35] = choices[35][0];

questions[36] = "37) Your vehicle struggles up a steep hill, to help it you should:";
choices[36] = new Array();
choices[36][0] = "Get out and push it";
choices[36][1] = "Change down to a lower gear";
choices[36][2] = "Change up to a higher gear";
choices[36][3] = "Avoid steering";
answers[36] = choices[36][1];

questions[37] = "38) You park facing uphill. Apart from making sure the handbrake is firmly on, you should:";
choices[37] = new Array();
choices[37][0] = "Leave the front wheels pointing away from the kerb";
choices[37][1] = "Stop close to the vehicle parked in front";
choices[37][2] = "Park slightly on the pavement";
choices[37][3] = "Leave the front wheels pointing towards the kerb";
answers[37] = choices[37][0];

questions[38] = "39) Coasting reduces:";
choices[38] = new Array();
choices[38][0] = "Drivers control";
choices[38][1] = "Speed";
choices[38][2] = "Fuel consumption";
choices[38][3] = "Brake fade";
answers[38] = choices[38][0];

questions[39] = "40) You are driving on a motorway and start to feel tired, you should:";
choices[39] = new Array();
choices[39][0] = "Stop on the hard shoulder for a brief walk";
choices[39][1] = "Close your windows for less noise and more peace";
choices[39][2] = "Call someone on your mobile phone to keeep you awake";
choices[39][3] = "Stop at a service area and rest";
answers[39] = choices[39][3];

questions[40] = "41) When would you use your hazard warning lights?";
choices[40] = new Array();
choices[40][0] = "When parked on a one-way street";
choices[40][1] = "When you see a hazard ahead on a motorway to warn drivers behind";
choices[40][2] = "When parked outside a shop for a brief moment";
choices[40][3] = "To thank somebody";
answers[40] = choices[40][1];

questions[41] = "42) Motor cyclists sometimes look over their shoulder before turning, this is because:";
choices[41] = new Array();
choices[41][0] = "They need to check for vehicles in their blind area";
choices[41][1] = "They need to make sure they are going the correct way";
choices[41][2] = "It helps with balance";
choices[41][3] = "They need to check for oil on the road";
answers[41] = choices[41][0];

questions[42] = "43) You are driving downhill. A parked car is on the otherside of the road and a large lorry is heading towards you. You should:";
choices[42] = new Array();
choices[42][0] = "Flash your headlights as a warning";
choices[42][1] = "Drive on as you have priority";
choices[42][2] = "Use your horn";
choices[42][3] = "Give-way";
answers[42] = choices[42][3];

questions[43] = "44) You are driving downhill. You notice your brakes are not working as normal, this is normally because of:";
choices[43] = new Array();
choices[43][0] = "Oil on the road";
choices[43][1] = "Your brakes overheating";
choices[43][2] = "Your brakes slipping";
choices[43][3] = "Brake fluid air";
answers[43] = choices[43][1];

questions[44] = "45) You can drive on the pavement when:";
choices[44] = new Array();
choices[44][0] = "You are meeting other vehicles";
choices[44][1] = "If no pedestrians are nearby";
choices[44][2] = "To get in to a property";
choices[44][3] = "If no one is around";
answers[44] = choices[44][2];

questions[45] = "46) Using a roof rack all the time may:";
choices[45] = new Array();
choices[45][0] = "Increase fuel consumption";
choices[45][1] = "Affect your steering";
choices[45][2] = "Speed you up";
choices[45][3] = "Make you more prone to cross-winds";
answers[45] = choices[45][0];

questions[46] = "47) You are driving where there is a temporary speed limit because of road works. You should:";
choices[46] = new Array();
choices[46][0] = "Ignore the speed limit";
choices[46][1] = "Only exceed the speed limit if nobody is around";
choices[46][2] = "Not exceed the speed limit";
choices[46][3] = "Go over it slightly only between 7:30pm-8:00am";
answers[46] = choices[46][2];

questions[47] = "48) You have third party insurance, which of these does it cover:";
choices[47] = new Array();
choices[47][0] = "Fire to your own vehicle";
choices[47][1] = "Damage to other persons vehicle";
choices[47][2] = "Theft of your vehicle";
choices[47][3] = "Theft of your vehicle audio equipment";
answers[47] = choices[47][1];

questions[48] = "49) You arrive at the scene of an accident where someone has been severely burnt. You should:";
choices[48] = new Array();
choices[48][0] = "Use cool liquid to douse the burns";
choices[48][1] = "Cover them in a blanket";
choices[48][2] = "Reassure them constantly";
choices[48][3] = "Raise both their legs to aid blood circulation";
answers[48] = choices[48][0];

questions[49] = "50) You are driving behind a large lorry. It signals left but actually steers right, you should:";
choices[49] = new Array();
choices[49][0] = "Drive past quickly but safely";
choices[49][1] = "Flash your lights and drive past";
choices[49][2] = "Slow down and let the lorry turn";
choices[49][3] = "Sound your horn as a warning";
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.";
// 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.";