1, 'question' => 'What does this sign mean?', 'answers' => array( 'Lane ends' => 0, 'A divider is coming, keep right' => 1, 'Traffic merging' => 0, 'No passing' => 0, ), 'img' => 'sign1.jpg', 'correct_answer' => 'A divider is coming, keep right' ), array( 'page' => 1, 'question' => "On multiple-laned roads, the far left lane is used only for:", 'answers' => array( 'All traffic that wishes to use it' => 0, 'Buses and carpools' => 0, 'Motorcycles' => 0, 'Overtaking and passing another vehicle' => 1, ), 'correct_answer' => 'The far left lane should be used for overtaking and passing another vehicle' ), array( 'page' => 1, 'question' => "A red car and a green car arrive at this intersection at the same time. Who has the right of way?", 'answers' => array( 'Red car' => 1, 'Green car' => 0, 'Whoever moves first' => 0, ), 'correct_answer' => "The red car because it's on the right of the green car", 'img' => 'intersection1.jpg' ), array( 'page' => 2, 'question' => 'What does the implied consent law mean?', 'answers' => array( 'You agree to keep your blood alcohol under the legal limit when driving' => 0, 'You agree to always have a designated driver' => 0, 'You agree to a test of your breath or blood, if a police officer has reasonable grounds to determine if you have been driving under the influence of alcohol or drugs' => 1, 'You have legally consented to have no more than 3 drinks' => 0, ), 'correct_answer' => 'It means you agree to a test of your breath or blood, if a police officer has reasonable grounds to determine if you have been driving under the influence of alcohol or drugs', ), array( 'page' => 2, 'question' => "When following a fire truck, you may follow no closer than:", 'answers' => array( '150 feet' => 0, '300 feet' => 0, '500 feet' => 1, '1000 feet' => 0, ), 'correct_answer' => 'You may follow no closer than 500 feet', ), array( 'page' => 2, 'question' => 'What is the single biggest contributor to car accidents?', 'answers' => array( 'Entering the street going the wrong way' => 0, 'Driving 15 or more miles over the speed limit' => 0, 'Improper equipment' => 0, 'Failing to see what is happening' => 1, ), 'correct_answer' => 'Heads up! Failing to see what is happening is the single biggest contributor to car accidents.', ), array( 'page' => 2, 'question' => 'About what percentage of collisions involve alcohol? ', 'answers' => array( '10%' => 0, '15%' => 0, '25%' => 0, '40%' => 1, ), 'correct_answer' => 'About 40% of all collisions involve alcohol', ), array( 'page' => 3, 'question' => "On a typical traffic light, which is on the top?", 'answers' => array( 'Green' => 0, 'Yellow' => 0, 'Red' => 1, 'Purplish guava' => 0, ), 'correct_answer' => "Red is always at the top", 'img' => 'light.gif' ), array( 'page' => 3, 'question' => "What's the speed limit in school zones (unless otherwise posted?)", 'answers' => array( '15 mph' => 0, '20 mph' => 1, '25 mph' => 0, '30 mph' => 0, ), 'correct_answer' => '20 mph', ), array( 'page' => 3, 'question' => "On a two-lane, two-way road, you may pass another vehicle when:", 'answers' => array( 'Your view is clear and there is space to return to the driving lane' => 1, 'You are within 50 feet of an intersection or railroad crossing' => 0, 'There is a solid yellow line on your side of the center line' => 0, 'Signs indicate a bridge or tunnel ahead ' => 0, ), 'correct_answer' => 'Your view is clear and there is space to return to the driving lane', ), array( 'page' => 3, 'question' => "When do pedestrians have the right of way?", 'answers' => array( 'At all times' => 0, 'Only at marked (painted) crosswalks' => 0, 'Only at intersections' => 0, 'At crosswalks and intersections regardless if the crosswalk is marked (painted) or not.' => 1, ), 'correct_answer' => 'Pedestrians have the right of way at crosswalks and intersections regardless if the crosswalk is marked (painted) or not.', ), array( 'page' => 4, 'question' => "This picture demonstrates how to signal a __________ if the signals on your car do not work.", 'answers' => array( 'Right turn' => 0, 'Left turn' => 0, 'Slow or stop' => 1, '"Pass me"' => 0, ), 'correct_answer' => "Slow or stop", 'img' => 'hand_signal.gif' ), array( 'page' => 4, 'question' => "Anti-locking brake systems can help improve steering ability, which means __________", 'answers' => array( 'Avoiding spin-outs' => 0, 'Directing the car where the driver wants it to go.' => 1, 'Decreasing the distance needed to stop the vehicle.' => 0, ), 'correct_answer' => "Directing the car where the driver wants it to go.", ), array( 'page' => 4, 'question' => "When a large truck wants to pass you, what should you do?", 'answers' => array( 'Slow down to shorten the time required to pass ' => 1, 'Pull over' => 0, 'Flip him the bird' => 0, 'Speed up' => 0, ), 'correct_answer' => "Slow down to shorten the time required to pass" ), array( 'page' => 4, 'question' => "What does a traffic light with a flashing red signal mean?", 'answers' => array( 'Yield' => 0, 'Caution' => 0, 'Stop' => 1, 'Flee for your lives!' => 0, ), 'correct_answer' => 'It means to stop at the intersection and treat it like a stop sign', ), array( 'page' => 5, 'question' => "You may not park within how many feet of a stop sign?", 'answers' => array( '25 feet' => 1, '50 feet' => 0, '75 feet' => 0, '100 feet' => 0, ), 'correct_answer' => 'You may not park within 25 feet of a stop sign', ), array( 'page' => 5, 'question' => "You are driving at night when your low-beam headlights stop working. What should you do?", 'answers' => array( 'Turn on your emergency flashers and keep driving' => 0, 'Turn on your high-beam headlights if they keep working and keep driving' => 0, 'Pull off the road and turn on your emergency flashers' => 1, ), 'correct_answer' => 'High-beams will make it difficult for other drivers to see, so you must pull over if your low beams do not work.', 'img' => 'night_driving.jpg' ), array( 'page' => 5, 'question' => "The green car wants to turn right, but pedestrians are waiting to cross. Who has right of way when the light turns green?", 'answers' => array( 'The pedestrians have right of way' => 1, 'Whoever moves first has right of way' => 0, 'The green car has right of way because there is no crosswalk marked' => 0, ), 'correct_answer' => 'Pedestrians always have the right of way at intersections', 'img' => 'intersection2.jpg' ), ); if (isset($_POST) && !empty($_POST)) { $max_points = count($questions); $points = 0; $wrong = array(); foreach ($questions as $key => $q) { if (!isset($_POST['question_' . $key])) { $wrong[$key] = true; } } foreach ($_POST as $key => $value) { if (preg_match('/question_(\d+)/',$key,$matches)) { if ($value > 0) { $points++; } else { $wrong[$matches[1]] = true; } } } $score = round(($points / $max_points) * 100); $score = $score > 100 ? 100 : $score; $grade = 'F'; if ($score >= 97) { $grade ='A+'; } elseif ($score >= 93 && $score <= 96) { $grade = 'A'; } elseif ($score >= 90 && $score <= 92) { $grade = 'A-'; } elseif ($score >= 87) { $grade ='B+'; } elseif ($score >= 83 && $score <= 86) { $grade = 'B'; } elseif ($score >= 80 && $score <= 82) { $grade = 'B-'; } elseif ($score >= 77) { $grade ='C+'; } elseif ($score >= 73 && $score <= 76) { $grade = 'C'; } elseif ($score >= 70 && $score <= 72) { $grade = 'C-'; } elseif ($score >= 67) { $grade ='D+'; } elseif ($score >= 63 && $score <= 66) { $grade = 'D'; } elseif ($score >= 60 && $score <= 62) { $grade = 'D-'; } elseif ($score < 60) { $grade = 'F'; } $grades = array( 'A' => 'Passed with an Excellent Score!', 'B' => 'Passed with an Above Average Score', 'C' => 'Passed with an Average Score', 'D' => 'Barely Passed', 'F' => 'Failed!' ); $grade_no_sign = preg_replace('/([-+])$/','',$grade); $letter_grade = $grades[$grade_no_sign]; $grade_for_img = preg_replace('/\-/','minus',$grade); $grade_for_img = strtolower(preg_replace('/\+/','plus',$grade_for_img)); $suppress_hand = true; $share_string = 'I took an online driving test and ' . strtolower($letter_grade) . '. My grade: ' . $grade . ' What about you? http://www.autoinsurance.org/drivers_test/'; $share_string = urlencode($share_string); $fb_url = urlencode('http://www.autoinsurance.org/drivers_test/?grade_img=' . $grade_for_img . '&grade_str=' . $letter_grade); } elseif (isset($_GET['grade_img'])) { $get_grade = htmlentities($_GET['grade_img']); $grade_str = htmlentities($_GET['grade_str']); $page_title = 'I took an online driving test and ' . $grade_str . ' - What about you?'; $suppress_hand = true; } ?>

Could You Pass a Driving Test?

I took an online driving test and


Could YOU pass a driving test? Click here to begin

Created by Auto Insurance.org - the free auto insurance educational resource.

$q): ?>

    $value): ?>
 

Your Grade:

% You

Answer Sheet

Post your results to

Your blog or website

Copy & paste the HTML code below to display your score on your blog or website.

Twitter

Facebook

Myspace

Take Another Quiz!

guess that car

Answer Sheet

$q): ?>

INCORRECT

CORRECT

    $value): ?>
  • 0): ?> CORRECT ANSWER:

Take Another Quiz!

guess that car name that road sign
Created by Auto Insurance.org - Auto Insurance blog, articles, and educational resources.
Next Page