//Chooses a random number
$num = Rand (1,10);
//Based on the random number, gives a quote
switch ($num)
{
case 1:
echo "mock hazard perception test 2024";
break;
case 2:
echo "hazard perception test 2024";
break;
case 3:
echo "hazard perception 2024";
break;
case 4:
echo "free hazard perception test 2024";
break;
case 5:
echo "hazard perception test 2024 practice";
break;
case 6:
echo "theory mock test 2024";
break;
case 7:
echo "mock theory test 2024";
break;
case 8:
echo "hazard perception mock test 2024";
break;
case 9:
echo "online hazard perception test 2024";
break;
case 10:
echo "driving test show and tell questions 2024";
}
?>
$page_title = "Uk-driving-test.com";
// If the form is submitted run the script
if(isset($_POST['submit'])){
$quest1 = $_POST['quest1'];
$quest2 = $_POST['quest2'];
$quest3 = $_POST['quest3'];
$quest4 = $_POST['quest4'];
$quest5 = $_POST['quest5'];
$quest6 = $_POST['quest6'];
$quest7 = $_POST['quest7'];
$quest8 = $_POST['quest8'];
$quest9 = $_POST['quest9'];
$quest10 = $_POST['quest10'];
// Lets make sure that everything has been submitted
if($quest1 == NULL OR $quest2 == NULL OR $quest3 == NULL OR $quest4 == NULL OR $quest5 == NULL OR $quest6 == NULL OR $quest7 == NULL OR $quest8 == NULL OR $quest9 == NULL OR $quest10 == NULL){
$test_complete .='Please complete the quiz! Go Back';
}else{
// change the quest1 to the right answer
if($quest1 == "2") {
$test_complete .="Question (1) is correct, well done!
"; }else{ $test_complete .="Question (1) is incorrect!
"; } // change the quest2 to the right answer if($quest2 == "2") { $test_complete .="Question (2) is correct, well done!
"; }else{ $test_complete .="Question (2) is incorrect!
"; } // change the quest3 to the right answer if($quest3 == "3") { $test_complete .="Question (3) is correct, well done!
"; }else{ $test_complete .="Question (3) is incorrect!
"; } // change the quest4 to the right answer if($quest4 == "3") { $test_complete .="Question (4) is correct, well done!
"; }else{ $test_complete .="Question (4) is incorrect!
"; } // change the quest5 to the right answer if($quest5 == "4") { $test_complete .="Question (5) is correct, well done!
"; }else{ $test_complete .="Question (5) is incorrect!
"; } // change the quest6 to the right answer if($quest6 == "2") { $test_complete .="Question (6) is correct, well done!
"; }else{ $test_complete .="Question (6) is incorrect!
"; } // change the quest7 to the right answer if($quest7 == "1") { $test_complete .="Question (7) is correct, well done!
"; }else{ $test_complete .="Question (7) is incorrect!
"; } // change the quest8 to the right answer if($quest8 == "3") { $test_complete .="Question (8) is correct, well done!
"; }else{ $test_complete .="Question (8) is incorrect!
"; } // change the quest9 to the right answer if($quest9 == "3") { $test_complete .="Question (9) is correct, well done!
"; }else{ $test_complete .="Question (9) is incorrect!
"; } // change the quest10 to the right answer if($quest10 == "1") { $test_complete .="Question (10) is correct, well done!
"; }else{ $test_complete .="Question (10) is incorrect!
"; } // Now lets see if all the questions are correct, this must match the above quest settings if($quest1 == "2" & $quest2 == "2" & $quest3 == "3" & $quest4 == "3" & $quest5 == "4" & $quest6 == "2" & $quest7 == "1" & $quest8 == "3" & $quest9 == "3" & $quest10 == "1"){ $test_complete .="
free hazard perception test 14 clips :: Single White Line Road Rules :: Test Routes 2024-2024
mock theory hazard perception test :: arm signal to turn left :: theory test case study 2024
Theory Mock Test 02
| Road Signs Test #1 | Road Signs Test #2 | Road Signs Test #3 | Road Signs Test #4 |
| Road Signs Test #5 |
"; }else{ $test_complete .="Question (1) is incorrect!
"; } // change the quest2 to the right answer if($quest2 == "2") { $test_complete .="Question (2) is correct, well done!
"; }else{ $test_complete .="Question (2) is incorrect!
"; } // change the quest3 to the right answer if($quest3 == "3") { $test_complete .="Question (3) is correct, well done!
"; }else{ $test_complete .="Question (3) is incorrect!
"; } // change the quest4 to the right answer if($quest4 == "3") { $test_complete .="Question (4) is correct, well done!
"; }else{ $test_complete .="Question (4) is incorrect!
"; } // change the quest5 to the right answer if($quest5 == "4") { $test_complete .="Question (5) is correct, well done!
"; }else{ $test_complete .="Question (5) is incorrect!
"; } // change the quest6 to the right answer if($quest6 == "2") { $test_complete .="Question (6) is correct, well done!
"; }else{ $test_complete .="Question (6) is incorrect!
"; } // change the quest7 to the right answer if($quest7 == "1") { $test_complete .="Question (7) is correct, well done!
"; }else{ $test_complete .="Question (7) is incorrect!
"; } // change the quest8 to the right answer if($quest8 == "3") { $test_complete .="Question (8) is correct, well done!
"; }else{ $test_complete .="Question (8) is incorrect!
"; } // change the quest9 to the right answer if($quest9 == "3") { $test_complete .="Question (9) is correct, well done!
"; }else{ $test_complete .="Question (9) is incorrect!
"; } // change the quest10 to the right answer if($quest10 == "1") { $test_complete .="Question (10) is correct, well done!
"; }else{ $test_complete .="Question (10) is incorrect!
"; } // Now lets see if all the questions are correct, this must match the above quest settings if($quest1 == "2" & $quest2 == "2" & $quest3 == "3" & $quest4 == "3" & $quest5 == "4" & $quest6 == "2" & $quest7 == "1" & $quest8 == "3" & $quest9 == "3" & $quest10 == "1"){ $test_complete .="
Congratulations, you got all the questions correct!
"; }else{ // If any of the questions are not correct lets tell them $test_complete .='Your not there just yet! Try again
'; }}} ?> if(!isset($_POST['submit'])){ ?>Theory Mock Test 02
Lets have some fun and see if you can get all the questions correct .. Good luck!
}else{ echo "Quiz Results
".$test_complete."
"; }?>
