$q) { $question = Question::getById($i); $answer = Answer::getById($q); if($answer->isCorrect()) { $correct++; } else { $output .= "".$question->getQuestion()."
"; $corAnswer = $question->getCorrectAnswer(); $output .= "Your Answer: ".$answer->getAnswer()."
Correct Answer: ".$corAnswer->getAnswer().'

'; $wrong++; } } } ?> NZART - Practice Exam
New Exam: 10 Questions - 30 Questions (Half Exam) - 60 Questions (Full Exam) - 600 Questions (All Questions)

Score ".(($correct/$total)*100)."% (".$correct."/".$total.")"; echo $output; } else { ?> Questions

$q) { echo ""; echo ""; echo ""; echo ""; if(!empty($q->getImage())) { echo ""; echo ""; echo ""; } foreach($q->answers as $x=>$ans) { echo ""; echo ""; echo ""; echo ""; } echo ""; } ?>
".($i+1)."".$q->getQuestion()."
getImage())."'>
".($letters[$x].". ".$ans->getAnswer())."