You got it! B) Car crashes. Sure, school lunches can be pretty hazardous to your health but did you know that more than 300,000 teen drivers and their passengers were injured last year? Even worse, nearly 6,000 teens died. As a teenager, you face a higher risk of being in a crash during the first years you have your driver's license.","Wrong! B) Car crashes. Sure, school lunches can be pretty hazardous to your health but did you know that more than 300,000 teen drivers and their passengers were injured last year? Even worse, nearly 6,000 teens died. As a teenager, you face a higher risk of being in a crash during the first years you have your driver's license."),array(2,"Who is most likely to be in a car crash?","C","Grandma Shirley","Your dad","Your 16-year-old friend Bill","Stuntmen","Correct! C) Sorry, Bill. Stuntmen crash cars for a living, but teenagers, like your friend Bill, not only have higher crash rates than other age groups, their crashes are different from adults. Analyses of fatal crash data indicate that teen drivers are more likely to be at fault when they crash. Teen crashes and violations also are more likely to involve speeding and to be in single-vehicle, fatal crashes.","Not quite! C) Sorry, Bill. Stuntmen crash cars for a living, but teenagers, like your friend Bill, not only have higher crash rates than other age groups, their crashes are different from adults. Analyses of fatal crash data indicate that teen drivers are more likely to be at fault when they crash. Teen crashes and violations also are more likely to involve speeding and to be in single-vehicle, fatal crashes."),array(3,"What's the safest number of friends you can have in your car at one time when you're first starting to drive?","D","One","Two","As many as will fit in your mom's new PT Cruiser","None","That's right! D) This is where it gets ugly: The answer is none. Research shows that 16- and 17-year-old drivers with even one passenger are one and a half times more likely to be involved in a crash than when driving alone. Even more brutal is that with two teen passengers, the risk more than doubles. With three or more teen passengers, it's three to five times more likely that you will be involved in a crash than if you are driving alone.","Actually, no. D) This is where it gets ugly: The answer is none. Research shows that 16- and 17-year-old drivers with even one passenger are one and a half times more likely to be involved in a crash than when driving alone. Even more brutal is that with two teen passengers, the risk more than doubles. With three or more teen passengers, it's three to five times more likely that you will be involved in a crash than if you are driving alone."),array(4,"What's the worst way to ruin a good night out?","C","Ask your date to split the dinner tab","Tell your friends your mom is coming along","Dialing up your friends while speeding off to the movies","Going for the world record on number of French fries that can fit up both nostrils","Great job! C) While these are all sure to ruin your night, the correct answer is C. Driving may look easy but it takes a lot more concentration than people think. Like it or not, when you first start driving, distractions can be devastating. And while it looks cool in the movies, speed is involved in more fatal teen crashes than with any other aged drivers. Teen drivers have the highest percentage of crashes where the driver is at fault and their crashes always involve the most passengers.","Nope, that's not it! C) While these are all sure to ruin your night, the correct answer is C. Driving may look easy but it takes a lot more concentration than people think. Like it or not, when you first start driving, distractions can be devastating. And while it looks cool in the movies, speed is involved in more fatal teen crashes than with any other aged drivers. Teen drivers have the highest percentage of crashes where the driver is at fault and their crashes always involve the most passengers."),array(5,"Who is more likely to be the worst driver?","A","16 year-olds","17 year-olds","18 year-olds","Flippy, your neighbor's dog","You're so smart! A) Flippy, your neighbor's dog? Pets driving? That only happens in the movies. Truth is, based on estimated miles traveled annually, teen drivers, ages 16-19, have a fatality rate four times the rate of drivers ages 25-69. And it's 16-year-olds at highest risk. Sixteen-year-old drivers have a crash rate three times more than 17 year-olds, five times greater than 18 year-olds, and two times that of 85 year-olds.","Oops! A) Flippy, your neighbor's dog? Pets driving? That only happens in the movies. Truth is, based on estimated miles traveled annually, teen drivers, ages 16-19, have a fatality rate four times the rate of drivers ages 25-69. And it's 16-year-olds at highest risk. Sixteen-year-old drivers have a crash rate three times more than 17 year-olds, five times greater than 18 year-olds, and two times that of 85 year-olds."),array(6,"What are more teen car crashes caused by?","B","The lunch rush", "Speeding","Critical text message retrieval","Hot dudes and chicks","Of course! B) This one was a gimme - speeding. Teens are much more likely to crash and to get speeding violations than drivers of other ages.","You should have known this! B) This one was a gimme - speeding. Teens are much more likely to crash and to get speeding violations than drivers of other ages."),array(7,"What is the best car for a 15-year-old-wanna-be driver?","B","A matchbox car","Your own personal chauffer","A totally tricked out SUV","Grandma's ride leftover from the 1970s","Actually, yes. B) A personal chauffer - It's cool in Hollywood and at home. Even though it's not the best news for your social life, one day you'll thank good 'ole Mom or Dad for making you wait to get your license/permit. Studies prove that your chances of being in a crash are greatly reduced when you gain a little experience behind the wheel and you wait til you're at least 16 to get your license/permit.","Sorry, but no! B) A personal chauffer - It's cool in Hollywood and at home. Even though it's not the best news for your social life, one day you'll thank good 'ole Mom or Dad for making you wait to get your license/permit. Studies prove that your chances of being in a crash are greatly reduced when you gain a little experience behind the wheel and you wait til you're at least 16 to get your license/permit."),array(8,"What's a really dumb thing to do behind the wheel?","D","Driving while blindfolded","Drinking and driving","Driving while eating a taco salad","All of the above","You got it! D) All of the above. It doesn't take a genius to know that you really should focus on the road when you're behind the wheel. Studies prove that many teen crashes are caused by distractions such as other teens in the vehicle, talking on cell phones, listening to loud music or eating and drinking. In addition, research also shows that during a typical weekend, an average of one teen dies per hour in a motor vehicle crash and 45% of these crashes involve alcohol.","Close, but not quite! D) All of the above. It doesn't take a genius to know that you really should focus on the road when you're behind the wheel. Studies prove that many teen crashes are caused by distractions such as other teens in the vehicle, talking on cell phones, listening to loud music or eating and drinking. In addition, research also shows that during a typical weekend, an average of one teen dies per hour in a motor vehicle crash and 45% of these crashes involve alcohol."),array(9,"What's the safest and smartest thing you can do this weekend?","D","Stay home and watch reruns with the folks","Grab a burger and catch a movie with some friends","Do homework","Pass up that drink you're offered at the party","Right! C) Do homework. Nah, we just wanted to see if you were paying attention. The real answer is D. We know it's the weekend and it's your time to let loose. But if there's one thing you should cross off your to-do list: drinking. It's illegal for you to drink and it can be deadly if you drink and drive. In 2001, among 16- to 19-year-old drivers, 25 percent of the guys and 14 percent of the girls who were killed in a crash had high blood alcohol concentrations (0.08 percent or more). So, it's OK to have fun on the weekend, but just don't be stupid.","Wrong! C) Do homework. Nah, we just wanted to see if you were paying attention. The real answer is D. We know it's the weekend and it's your time to let loose. But if there's one thing you should cross off your to-do list: drinking. It's illegal for you to drink and it can be deadly if you drink and drive. In 2001, among 16- to 19-year-old drivers, 25 percent of the guys and 14 percent of the girls who were killed in a crash had high blood alcohol concentrations (0.08 percent or more). So, it's OK to have fun on the weekend, but just don't be stupid."),array(10,"Who is more likely to experience a deadly car crash?","A","Teens","Teens","Teens","Teens","No other choice. A,B,C,D) Teens. Sorry to say, statistically, this is a no-brainer. Look, you're young and driving takes more experience than you think. You've got to be careful. It's good to excel but in this case, it's not such a proud moment for teenagers when they beat all other age groups when it comes to dying in crashes. In 2001, 63 percent of teenage passenger deaths occurred in crashes in which another teenager was driving.","No other choice. A,B,C,D) Teens. Sorry to say, statistically, this is a no-brainer. Look, you're young and driving takes more experience than you think. You've got to be careful. It's good to excel but in this case, it's not such a proud moment for teenagers when they beat all other age groups when it comes to dying in crashes. In 2001, 63 percent of teenage passenger deaths occurred in crashes in which another teenager was driving."),array(11,"What's the scariest thing about being 16?","C","Having a zit the size of Mini-Me","Failing a class","Becoming a statistic","Parallel parking with your dad","Looks like you understand the risks. The answer is C) Or at least it should be for you! No one ever expects anything bad to happen to them. But 6,000 teenagers were killed last year. The road can be a pretty unfriendly place for new drivers and passengers. Did you know more teenage passenger deaths occur when a 16-year-old is driving than when a person of any other age is at the wheel?","Think about this one again. The answer is C) Or at least it should be for you! No one ever expects anything bad to happen to them. But 6,000 teenagers were killed last year. The road can be a pretty unfriendly place for new drivers and passengers. Did you know more teenage passenger deaths occur when a 16-year-old is driving than when a person of any other age is at the wheel?"),array(12,"What's the most important thing to wear when driving?","D","Cowboy hat and boots","A Wig","Bunny slippers","A seat belt","That's it! D) A seat belt. You can take fashion risks anytime you want, but when it comes to driving, you've got to buckle up! Compared with older drivers, teenagers as a group are more willing to take risks and less likely to use seat belts.","Think again! D) A seat belt. You can take fashion risks anytime you want, but when it comes to driving, you've got to buckle up! Compared with older drivers, teenagers as a group are more willing to take risks and less likely to use seat belts."),array(13,"Who's got the greatest risk when it comes to drinking and driving?","A","Guys","Girls","","","Very true! A) Guys. But drinking and driving is stupid no matter who you are. In 2001, 27 percent of the young male drivers involved in fatal crashes had been drinking at the time of the crash, compared with 13 percent of the young female drivers involved in fatal crashes. But remember we're all at the mercy of other drivers, so pay attention and drive smart.","Wrong! A) Guys. But drinking and driving is stupid no matter who you are. In 2001, 27 percent of the young male drivers involved in fatal crashes had been drinking at the time of the crash, compared with 13 percent of the young female drivers involved in fatal crashes. But remember we're all at the mercy of other drivers, so pay attention and drive smart."),array(14,"If you are wearing a seat belt in a car crash, how much is your risk of death reduced compared to someone who is not?","A","45%","25%","75%","0% Seat belts don't matter as long as you hold on tight.","That's what I'm talking about! A) Get a grip on this: Your risk of death is reduced by 45% when you are wearing a seat belt compared to not wearing one if you are in a car crash.","Um, you may want to rethink that answer! A) Get a grip on this: Your risk of death is reduced by 45% when you are wearing a seat belt compared to not wearing one if you are in a car crash."),array(15,"Driving with two friends changes your chance of crashing by how much?","A","2 times","4 times","6 times","10 times","Genius, absolute genius! A) You are more than twice as likely to crash with two teenage friends in the car as compared to driving by yourself.","I'm sorry, that just doesn't add up! A) You are more than twice as likely to crash with two teenage friends in the car as compared to driving by yourself."),array(16,"Driving with three teen passengers changes your likelihood of crashing by how much?","A","5 times","10 times","100 times","I don't have three friends","You must be paying attention! A) You are FIVE times more likely to crash with three teenage friends in the car as compared to driving by yourself.","I know you can do better than that! A) You are FIVE times more likely to crash with three teenage friends in the car as compared to driving by yourself."),array(17,"How many teens died in car crashes in 2002?","C","1,200","4,500","6,000","10,000","You know your stats! C) Believe it or not, 6,000 teens died in car crashes in 2002 in the United States.","You may want to think about this one more! C) Believe it or not, 6,000 teens died in car crashes in 2002 in the United States."),array(18,"In the year 2001, how many drivers involved in car crashes were teens?","C","1","6,000","2,000,000","All of them.","I'm so proud! C) Nearly 2 million teens smashed up the family car in 2001.","Wait until you see the correct answer! C) Nearly 2 million teens smashed up the family car in 2001."),array(19,"If you have three rowdy teen passengers in your car, what should you do?","D","Tell them to shut up.","Kick them out of your car.","Never talk to them again.","None of the above.","It seems you can't be fooled by us! D) Trick question! You should not have other teens in the car with you as an inexperienced driver!","We got you this time! D) Trick question! You should not have other teens in the car with you as an inexperienced driver!"),array(20,"What percentage of drivers, ages 14-19, were involved in speed-related crashes?","B","21%","37%","69%","89%","Wow, I'm impressed! B) Speed is a factor in 37% of teen crashes.","Yeah, I know, this is a tricky one. B) Speed is a factor in 37% of teen crashes."),array(21,"How many fatalities could be prevented if everyone wore seat belts?","C","2,200","5,200","9,200","No difference","Hey, are you peeking at the answers? C) It is estimated that 9,200 lives a year could be saved merely by wearing a seat belt.","Don't worry, I got this wrong the first time too! C) It is estimated that 9,200 lives a year could be saved merely by wearing a seat belt."),array(22,"What percentage of teenage vehicle deaths occur on Friday, Saturday, or Sunday night?","B","43%","53%","63%","110%","Have a fun, SAFE weekend! B) 53% of teenage deaths occur on the weekend.","School's not out for the weekend yet! B) 53% of teenage deaths occur on the weekend."),array(23,"In the year 2002, how many people, ages 16 to 20, were injured in car crashes?","D","5","1,000","20,000","300,000","I knew you'd get this right! D) 300,000 teens were injured in car crashes in 2002.","Think BIGGER! D) 300,000 teens were injured in car crashes in 2002."),array(24,"What percent of teen driving deaths are alcohol related?","B","26%","36%","46%","100%","We have a modern-day Einstein here! B) Over one-third of teen driving deaths are alcohol related.","Sorry, not this time! B) Over one-third of teen driving deaths are alcohol related."),array(25,"Parental awareness and involvement have been shown to?","D","Embarrass their children.","Cause stress headaches.","Cook 30-minutes brownies in 20 minutes.","Reduce teen's car crash risk.","Tell your parents to raise your allowance! D) Having mom or dad in the car with you may cramp your style a little, but there is a huge payoff in safety.","Give your parents more credit than that! D) Having mom or dad in the car with you may cramp your style a little, but there is a huge payoff in safety.")); $qlimit = 10; // only want to do this if the random session var is not set if(!isset($_SESSION['rand'])){ //echo("session var rand not set, setting
"); $_SESSION['rand'] = $rand = array_rand($questions,$qlimit); //$rand = array_rand($questions,$qlimit); // put this into a session variable //$_SESSION['rand'] = $rand; } function getQuestion($qid,$variable,$questions){ // handle question 10 where all answers are correct (after || in if stmt) //echo("

".$questions[$_SESSION['rand'][$qid]][0]."

"); $holder = "A"; for($a=3;$a<=6;$a++){ if($questions[$_SESSION['rand'][$qid]][2] == $holder || $questions[$_SESSION['rand'][$qid]][0] == 10){$v=1;}else{$v=0;} if($questions[$_SESSION['rand'][$qid]][$a] != ''){ $string .= ""; $string .= "$holder".") ".$questions[$_SESSION['rand'][$qid]][$a]."
\n"; } $holder++; } return $string; } echo('Road Ready Reality Check Quiz
'); ////////////////////////////////////////////////////////////////// session_start(); if(isset($one)){$_SESSION['one'] = $one;} if(isset($two)){$_SESSION['two'] = $two;} if(isset($three)){$_SESSION['three'] = $three;} if(isset($four)){$_SESSION['four'] = $four;} if(isset($five)){$_SESSION['five'] = $five;} if(isset($six)){$_SESSION['six']=$six;}if(isset($seven)){$_SESSION['seven'] = $seven;} if(isset($eight)){$_SESSION['eight'] = $eight;} if(isset($nine)){$_SESSION['nine'] = $nine;} if(isset($ten)){$_SESSION['ten'] = $ten;} if(isset($eleven)){$_SESSION['eleven'] = $eleven;} if(isset($frmintro)){$_SESSION['frmintro'] = $frmintro;} if(isset($frmtwo)){$_SESSION['frmtwo'] = $frmtwo;} if(isset($frmthree)){$_SESSION['frmthree'] = $frmthree;} if(isset($frmfour)){$_SESSION['frmfour'] = $frmfour;} if(isset($frmfive)){$_SESSION['frmfive'] = $frmfive;} if(isset($frmsix)){$_SESSION['frmsix'] = $frmsix;} if(isset($frmseven)){$_SESSION['frmseven'] = $frmseven;} if(isset($frmeight)){$_SESSION['frmeight'] = $frmeight;} if(isset($frmnine)){$_SESSION['frmnine'] = $frmnine;} if(isset($frmten)){$_SESSION['frmten'] = $frmten;} if(isset($frmeleven)){$_SESSION['frmeleven'] = $frmeleven;} if(isset($frmtwelve)){$_SESSION['frmtwelve'] = $frmtwelve;} if(isset($frmthirteen)){$_SESSION['frmthirteen'] = $frmthirteen;} if(isset($frmfourteen)){$_SESSION['frmfourteen'] = $frmfourteen;} if(isset($frmfifteen)){$_SESSION['frmfifteen'] = $frmfifteen;} if(!isset($_SESSION['frmintro'])){ $intro_text = "

If you think you know the road, think again. It's time for a Road Ready Reality Check. The following quiz will test your knowledge of what it means to be a safe and responsible driver. Because getting behind the wheel is much more than simply knowing where the gas and brake pedals are located. You've got to understand what you're up against and how to steer clear of any dangerous situations.

Take the Road Ready Reality Check and see if you really are ready to get behind the wheel!

"; echo($intro_text); }elseif(!isset($_SESSION['frmtwo'])){ // look up question from session var and use data / // question number // question echo("

 

"); echo("".$questions[$_SESSION['rand'][0]][1]."

\n"); echo("
"); // // ietarate through 3-6 assigning value=1 when correct $return = getQuestion(0,"two",$questions); echo $return; echo("

"); echo(""); //echo(""); echo("

"); echo("

"); echo("
\n"); }elseif(!isset($_SESSION['frmthree'])){ // handle response from first question if($two==1){ echo($questions[$_SESSION['rand'][0]][7]."
"); }else{ echo($questions[$_SESSION['rand'][0]][8]."
"); } // look up question from session var and use data // question number // question echo("

 

"); echo("".$questions[$_SESSION['rand'][1]][1]."

\n"); echo("
"); // ietarate through 3-6 assigning value=1 when correct $return = getQuestion(1,"three",$questions); echo $return; echo("

"); echo("

"); echo("

"); echo("
\n"); }elseif(!isset($_SESSION['frmfour'])){ // look up question from session var and use data // question number if($three==1){ echo($questions[$_SESSION['rand'][1]][7]."
"); }else{ echo($questions[$_SESSION['rand'][1]][8]."
"); } // question echo("

 

"); echo("".$questions[$_SESSION['rand'][2]][1]."

\n"); echo("
"); // ietarate through 3-6 assigning value=1 when correct $return = getQuestion(2,"four",$questions); echo $return; echo("

"); echo("

"); echo("

"); echo("
\n"); }elseif(!isset($_SESSION['frmfive'])){ // look up question from session var and use data // question number if($four==1){ echo($questions[$_SESSION['rand'][2]][7]."
"); }else{ echo($questions[$_SESSION['rand'][2]][8]."
"); } // question echo("

 

"); echo("".$questions[$_SESSION['rand'][3]][1]."

\n"); echo("
"); // ietarate through 3-6 assigning value=1 when correct $return = getQuestion(3,"five",$questions); echo $return; echo("

"); echo("

"); echo("

"); echo("
\n"); }elseif(!isset($_SESSION['frmsix'])){ // look up question from session var and use data // question number if($five==1){ echo($questions[$_SESSION['rand'][3]][7]."
"); }else{ echo($questions[$_SESSION['rand'][3]][8]."
"); } // question echo("

 

"); echo("".$questions[$_SESSION['rand'][4]][1]."

\n"); echo("
"); // ietarate through 3-6 assigning value=1 when correct $return = getQuestion(4,"six",$questions); echo $return; echo("

"); echo("

"); echo("

"); echo("
\n"); }elseif(!isset($_SESSION['frmseven'])){ // look up question from session var and use data // question number if($six==1){echo($questions[$_SESSION['rand'][4]][7]."
"); } else{ echo($questions[$_SESSION['rand'][4]][8]."
"); } // question echo("

 

"); echo("".$questions[$_SESSION['rand'][5]][1]."

\n"); echo("
"); // ietarate through 3-6 assigning value=1 when correct $return = getQuestion(5,"seven",$questions); echo $return; echo("

"); echo("

"); echo("

"); echo("
\n"); }elseif(!isset($_SESSION['frmeight'])){ // look up question from session var and use data // question number if($seven==1){ echo($questions[$_SESSION['rand'][5]][7]."
"); }else{ echo($questions[$_SESSION['rand'][5]][8]."
"); } // question echo("

 

"); echo("".$questions[$_SESSION['rand'][6]][1]."

\n"); echo("
"); // ietarate through 3-6 assigning value=1 when correct $return = getQuestion(6,"eight",$questions); echo $return; echo("

"); echo("

"); echo("

"); echo("
\n"); } elseif(!isset($_SESSION['frmnine'])){ // look up question from session var and use data // question number if($eight==1){ echo($questions[$_SESSION['rand'][6]][7]."
"); }else{ echo($questions[$_SESSION['rand'][6]][8]."
"); } // question echo("

 

"); echo("".$questions[$_SESSION['rand'][7]][1]."

\n"); echo("
"); // ietarate through 3-6 assigning value=1 when correct $return = getQuestion(7,"nine",$questions); echo $return; echo("

"); echo("

"); echo("

"); echo("
\n"); } elseif(!isset($_SESSION['frmten'])){ // look up question from session var and use data // question number if($nine==1){ echo($questions[$_SESSION['rand'][7]][7]."
"); }else{ echo($questions[$_SESSION['rand'][7]][8]."
"); } // question echo("

 

"); echo("".$questions[$_SESSION['rand'][8]][1]."

\n"); echo("
"); // ietarate through 3-6 assigning value=1 when correct $return = getQuestion(8,"ten",$questions); echo $return; echo("

"); echo("

"); echo("

"); echo("
\n"); } elseif(!isset($_SESSION['frmeleven'])){ // look up question from session var and use data // question number if($ten==1){ echo($questions[$_SESSION['rand'][8]][7]."
"); }else{ echo($questions[$_SESSION['rand'][8]][8]."
"); } // question echo("

 

"); echo("".$questions[$_SESSION['rand'][9]][1]."

\n"); echo("
"); // ietarate through 3-6 assigning value=1 when correct $return = getQuestion(9,"eleven",$questions); echo $return; echo("

"); echo("

"); echo("

"); echo("
\n"); } elseif(!isset($_SESSION['frmtwelve'])){ if($eleven==1){ echo($questions[$_SESSION['rand'][9]][7]."
"); }else{ echo($questions[$_SESSION['rand'][9]][8]."
"); } echo("

 

"); // tally score .. //tally answers $tally = $_SESSION['two']+$_SESSION['three']+$_SESSION['four']+$_SESSION['five']+$_SESSION['six']+$_SESSION['seven']+$_SESSION['eight']+$_SESSION['nine']+$_SESSION['ten']+$_SESSION['eleven']; if($tally>=8){ $endmessage="

You answered $tally out of 10 correctly!

"."

Congratulations! You've passed the Road Ready Reality Check Quiz ! You've proven that you have the knowledge. Now you have to earn the keys. So check out the Road Ready Streetwise video game because sharpening your driving skills with Streetwise will get you road ready before you know it.

"; }else{ $endmessage="

You only answered $tally out of 10 correctly!

"."

Did the Reality Check Quiz throw you for a few twists and turns? Don't sweat it. Try again. The road can be a tough place for a teen. And the best way to get road ready is to study the rules of the road and to practice driving. So check out the Road Ready Streetwise video game because sharpening your driving skills with Streetwise will get you road ready before you know it.

"; } echo("$endmessage"); echo("

"); echo(" "); echo("

"); echo("

"); echo("

close window

"); echo("

"); } ////////////////////////////////////////////////////////// ////// //debug /* echo("
"); echo "Question Order\n"; while (list($pos,$id)=each($_SESSION['rand'])) { echo "$id \n"; // insert into session variables //$_SESSION['question'][$id] = $text; } echo "
"; echo("two ".$_SESSION['two']."
"); echo("three ".$_SESSION['three']."
"); echo("four ".$_SESSION['four']."
"); echo("five ".$_SESSION['five']."
"); echo("six ".$_SESSION['six']."
"); echo("seven ".$_SESSION['seven']."
"); echo("eight ".$_SESSION['eight']."
"); echo("nine ".$_SESSION['nine']."
"); echo("ten ".$_SESSION['ten']."
"); echo("eleven ".$_SESSION['eleven']."
"); */ ?>