$answer){ //Check the answer hasn't already been submitted. $testQuery=mysql_query("select count(id) as c from ".$mysqlAnswerTable." where sn=".$_SESSION['sn']." and question=".$question); if(mysql_error()){ echo "Please report this to the administrator: ".mysql_error(); die; } if(mysql_result($testQuery,0,'c')!=0) {mysql_close(); header("location:".$nextQuestionURL); die(); }; $query="insert into ".$mysqlAnswerTable."(sn,course,question,answer,tstamp) values('".mysql_escape_string($_SESSION['sn'])."','".mysql_escape_string($_SESSION['course'])."',".$question.",'".mysql_escape_string($answer)."',".time().")"; mysql_query($query); if(mysql_error()){ echo "Please report this to the administrator: ".mysql_error(); die; } } //Go to the next question. mysql_close(); header("location:".$nextQuestionURL); die(); } else if(isset($_POST['Submit'])) $flag=1; ?> Question 6
Question 6

Answer all parts of this question with reference to the following position-time and velocity-time graphs, which depict a person's motion.



A. What was the person's maximum distance from the detector?
  2m 4m 6m 8m
Answer A

B. What was the person's maximum velocity?
  -2m/s 0m/s 3m/s 8m/s
Answer B

C. At what time did the person reverse direction?
  0s 4s 6s 10s
Answer C



D. Did the person come back to the position they started at or not? Give reasons for your answer.



E. Describe in words how the person moved.