
| // the answer arrays are contained
in the external answers.js file <SCRIPT SRC="answers.js"></SCRIPT> <SCRIPT> function score(form) {var correct = 0; var incorrec = ""; // answers.length is
the number of answers
for (j = 0; j < eval("form.Q"
+ i).length;
j++) { if
(field.checked) {
if (numChecked != count) count = -1; form.correct.value = correct; function showAnswers(form)
{ field.checked = false;
for (k = 0; k < answers[i - 1].length;
k++) { form.correct.value = ""; </SCRIPT> CONVENTIONS: <FORM NAME="quiz"> <OL> <LI>if minutes = 9 & timeSt = ((minutes < 10) ? ":0" : ":") + minutes; Then timeSt equals</LI> <INPUT TYPE="radio" NAME="Q1" VALUE="a"> A. :0<BR> <INPUT TYPE="radio" NAME="Q1" VALUE="b"> B. :09<BR> <INPUT TYPE="radio" NAME="Q1" VALUE="c"> C. :9<BR> <INPUT TYPE="radio" NAME="Q1" VALUE="d"> D. 9</P> <LI>The prompt() method requires two pieces of information. The first is text to be displayed, and the second is the default data in the entry field.</LI> <INPUT TYPE="radio" NAME="Q2" VALUE="a"> A. true<BR> <INPUT TYPE="radio" NAME="Q2" VALUE="b"> B. false </P>
< LI>Which of the following are legal variable names?</LI><INPUT TYPE="checkbox" NAME="Q10" VALUE="a">A. _dummy<BR> <INPUT TYPE="checkbox" NAME="Q10" VALUE="b">B. v13<BR> <INPUT TYPE="checkbox" NAME="Q10" VALUE="c">C. 13v<BR> <INPUT TYPE="checkbox" NAME="Q10" VALUE="d">D. A9</P> </OL> You have: < INPUT TYPE="text" NAME="correct"> answers correct out of a possible ten.The question numbers that were not correct are: THE BUTTONS:
<INPUT
TYPE="button"
VALUE="Get
Score" onClick="score(this.form)"> |