Skip to content

Instantly share code, notes, and snippets.

Created March 2, 2015 09:34
Show Gist options
  • Save anonymous/9468db1fc694b2446dd5 to your computer and use it in GitHub Desktop.
Save anonymous/9468db1fc694b2446dd5 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Online Aptitude Quiz: Page</title>
<link href="quiz.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="functions.js"></script>
<script type = "text/javascript">
var seconds = 0;
var clockId;
function runClock() {
seconds++;
}
function startClock() {
showQuiz();
clockId = setInterval(runClock(), 1000);
runClock();
}
function stopClock() {
clearInterval(runClock());
var correctAns = gradeQuiz();
alert('You have ' + correctAns + ' correct of 5 in ' + quizclock + ' seconds.');
}
</script>
</head>
<body>
<form id="quiz" name="quiz" action="">
<div id="header">
<p><img src="oae.jpg" alt="Online Aptitude Exam" />
<span>Grunwald Testing, Inc.</span><br />
1101 Science Drive<br />
Oakdale, CA 88191
</p>
</div>
<div id="intro">
<p>This is a timed quiz of intelligence and perception. Your final score will
be based on the number of correct answers and the time required to submit those
answers.</p>
<p>To start the quiz, click the <b>Start Quiz</b> button below, which will
reveal the first page of quiz questions and start the timer. When you have
completed the questions, click the <b>Submit Answers</b> button on the quiz
form.</p>
<p id="buttons">
<input type= "button" onclick="startClock()" value="Start Quiz" />
<br />
<input name="quizclock" id="quizclock" value= '0' />
</p>
</div>
<div id="questions">
<h1>Page 1: Pattern Recognition</h1>
<table id="quiztable">
<tr>
<th rowspan="3">1.</th>
<td colspan="2">Enter the next number in this sequence: 1, 3, 4, 7, 11, 18, ...</td>
</tr>
<tr>
<td><input type="radio" name="q1" />a) 22</td>
<td><input type="radio" name="q1" />c) 28</td>
</tr>
<tr>
<td id="cor1"><input type="radio" name="q1" />b) 29</td>
<td><input type="radio" name="q1" />d) 32</td>
</tr>
<tr>
<th rowspan="3">2.</th>
<td colspan="2">Enter the final three numbers in this sequence: 8, 5, 4, 9, 1, 7, 6, ...</td>
</tr>
<tr>
<td id="cor2"><input type="radio" name="q2" />a) 10, 3, 2</td>
<td><input type="radio" name="q2" />c) 2, 3, 10</td>
</tr>
<tr>
<td><input type="radio" name="q2" />b) 2, 10, 3</td>
<td><input type="radio" name="q2" />d) 10, 2, 3</td>
</tr>
<tr>
<th rowspan="3">3.</th>
<td colspan="2">Enter the next letter in this sequence: j, f, m, a, m, j, j, ...</td>
</tr>
<tr>
<td><input type="radio" name="q3" />a) j</td>
<td><input type="radio" name="q3" />c) f</td>
</tr>
<tr>
<td><input type="radio" name="q3" />b) m</td>
<td id="cor3"><input type="radio" name="q3" />d) a</td>
</tr>
<tr>
<th rowspan="3">4.</th>
<td colspan="2">What letter in this set does not belong?: A, B, D, G, J, S, O</td>
</tr>
<tr>
<td id="cor4"><input type="radio" name="q4" />a) A</td>
<td><input type="radio" name="q4" />c) J</td>
</tr>
<tr>
<td><input type="radio" name="q4" />b) B</td>
<td><input type="radio" name="q4" />d) O</td>
</tr>
<tr>
<th rowspan="3">5.</th>
<td colspan="2">What is the next figure in the following sequence?:<br />
<img src="figures.jpg" alt="" />
</td>
</tr>
<tr>
<td><input type="radio" name="q5" />a) <img src="figa.jpg" alt="" /></td>
<td><input type="radio" name="q5" />c) <img src="figc.jpg" alt="" /></td>
</tr>
<tr>
<td><input type="radio" name="q5" />b) <img src="figb.jpg" alt="" /></td>
<td id="cor5"><input type="radio" name="q5" />d) <img src="figd.jpg" alt="" /></td>
</tr>
<tr>
<td colspan="3" style="text-align: center">
<hr />
<input type="button" onclick='stopClock()' value="Submit Answers" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment