session_start(); $is_digg = false; if (preg_match('/digg.com/i',$_SERVER['HTTP_REFERER'])) { $_SESSION['is_digg']=true; $is_digg = true; } elseif (isset($_SESSION) && $_SESSION['is_digg']) { $is_digg = true; } $questions = array( array( 'answers' => array( 'No backing up' => 0, 'Left lane must stay to the left, right lane must to stay to the right' => 0, 'Traffic is permitted on either side of an island or obstruction' => 1, 'Left and right turn lanes ahead' => 0, 'Slow down' => 0, ), 'correct_answer' => "Traffic is permitted on either side of an island or obstruction", ), array( 'answers' => array( 'Slippery conditions ahead when wet' => 1, 'Curvy road' => 0, 'Right turn' => 0, 'U-turn route' => 0, ), 'correct_answer' => 'Slippery conditions ahead when wet' ), array( 'answers' => array( 'Railroad tracks' => 0, 'Passing lane ahead' => 0, 'Merge to the right' => 0, 'Added lane ahead' => 1, ), 'correct_answer' => 'Added lane ahead', ), array( 'answers' => array( 'No passing' => 0, 'Shoulder ahead' => 0, 'Keep left of the obstruction' => 0, 'Keep right of the obstruction' => 1, 'Curvy mountain road warning' => 0, ), 'correct_answer' => 'Keep right of the obstruction', ), array( 'answers' => array( "Two-way traffic ahead"=> 1, "Passing is OK" => 0, 'Divided highway ends' => 0, 'One-way traffic ahead' => 0, ), 'correct_answer' => 'Two way traffic ahead', ), array( 'answers' => array( "Railroad crossing ahead" => 0, 'Traffic light ahead' => 0, '4-way traffic ahead' => 1, 'Stop sign ahead' => 0 ), 'correct_answer' => '4-way traffic ahead', ), array( 'answers' => array( "Rest area ahead"=> 0, "Railroad crossing ahead" => 0, 'You will encounter a railroad crossing when turning right ahead' => 1, 'Added lane ahead' => 0 ), 'correct_answer' => 'You will encounter a railroad crossing when turning right ahead', ), array( 'answers' => array( "Lane ends"=> 0, "Merging traffic from left" => 1, "Added lane ahead"=> 0, "Passing zone"=> 0, ), 'correct_answer' => "Merging traffic from left", ), array( 'answers' => array( "U-turn OK"=> 0, "Road curves to the right" => 0, "Merging lanes" => 0, "Roundabout ahead"=> 1, ), 'correct_answer' => 'Roundabout ahead', ), array( 'answers' => array( "No passing"=> 0, "Slippery, snowy conditions ahead" => 0, "Parking ahead" => 0, "Pavement ends ahead"=> 1, ), 'correct_answer' => 'Pavement ends ahead', ), array( 'answers' => array( "Road curves to the right, then back to the left"=> 1, "Slippery conditions ahead" => 0, "Road curves to the left, then back to the right" => 0, "Construction ahead"=> 0, ), 'correct_answer' => 'Road curves to the right, then back to the left', ), array( 'answers' => array( "Left lane ends ahead"=> 0, "Soft shoulder warning" => 0, 'Narrow bridge warning' => 1, 'Two-way traffic begins' => 0, ), 'correct_answer' => "Narrow bridge warning", ), array( 'answers' => array( "Farm equipment ahead - use caution" => 0, 'Tourist attraction ahead' => 0, 'Horse drawn vehicle crossing ahead' => 1, ), 'correct_answer' => "Horse drawn vehicle crossing ahead", ), array( 'answers' => array( "Warning sign for a hill ahead"=> 1, "No trucks ahead" => 0, 'Truck route ahead' => 0, 'Warning sign for a truck ramp' => 0, ), 'correct_answer' => "Warning sign for a hill ahead", ), array( 'answers' => array( "Road will narrow ahead"=> 0, "Weigh station ahead" => 0, "Minimum vehicle height area ahead" => 0, 'Low clearance ahead' => 1 ), 'correct_answer' => 'Low clearance ahead', ), array( 'answers' => array( "Right lane must turn right"=> 0, "No u-turns, no left turns" => 1, 'Left lane must turn left' => 0 ), 'correct_answer' => 'No u-turns, no left turns', ), array( 'answers' => array( "Hospital ahead"=> 0, "High maintenance road work ahead" => 0, 'Heavy machinery ahead' => 0, 'A designated route for vehicles transporting hazardous materials' => 1 ), 'correct_answer' => 'A designated route for vehicles transporting hazardous materials', ), array( 'answers' => array( "No parking"=> 1, "No passing" => 0, 'No oversized vehicles allowed' => 0 ), 'correct_answer' => 'No parking', ), array( 'answers' => array( "Merging traffic from the right"=> 0, "Right lane ends" => 1, 'Island or obstruction ahead, merge right' => 0 ), 'correct_answer' => 'Right lane ends', ), ); if (isset($_GET['t'])) { $page_title = htmlentities($_GET['t']); } if (isset($_POST['points'])) { $max_points = count($questions); $points = isset($_POST['points']) ? $_POST['points'] : $_GET['points']; $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)); } ?>
![]() via Auto Insurance |
Post your results toYour blog or websiteCopy & paste the HTML code below to add this to your blog or website. |
Road signs are classified into several different groups, and there are some fairly surprising ones out there. Below is a list of all the traffic signs in the US.
Recreational and Cultural Interest Signs
Temporary Traffic Control Signs
Emergency and Incident Management Signs
endif; ?>