```
var Total_Question = 10
// Remember to change this value
// according to # of questions
var msg = ""
var Solution = new Array(Total_Question)
//NOTE:  PLACE ANSWERS/EXPLANATION HERE FOR THE SCORE REPORT
Solution[0] = "Explanation 01"
Solution[1] = "Explanation 02"
Solution[2] = "Explanation 03"
Solution[3] = "Explanation 04"
Solution[4] = "Explanation 05"
Solution[5] = "Explanation 06"
Solution[6] = "Explanation 07"
Solution[7] = "Explanation 08"
Solution[8] = "Explanation 09"
Solution[9] = "Explanation 10"

var hints=0
var Hint = new Array(Total_Question)
function GetSelectedButton(ButtonGroup)
{
for (var x=0; x < ButtonGroup.length; x++)
if (ButtonGroup[x].checked) return x
return 0
}
function ReportScore(correct)
{
var SecWin =
window.open("","","scrollbars,width=300,height=200")
var MustHave1 = "<HTML><HEAD><TITLE>Your Score</TITLE></HEAD><BODY>"
var Percent = "<H2>Score : "+Math.round((correct-hints)/Total_Question*100)		 + "%</2><HR>"
if (hints == .5)
{var Hint_string = " "}
else
{var Hint_string = " "}
SecWin.document.write(Hint_string)
msg = MustHave1 +Percent + msg  + "</BODY></HTML>"
SecWin.document.write(msg)
msg = ""  // Clear message
}
function Hintfunction(q)
{
hints +=.5
alert (Hint[q])
return 0
}
function Grade()
{
var correct = 0
var wrong = 0
for (number=0; number < Total_Question; number++)
{
var form = document.forms[number]      // Question #
var i = GetSelectedButton(form.q1)
if (form.q1[i].value == "1")
{ correct++ }
else
{ wrong++
msg += "<H4>Question "+(number+1)+".</4>"
+Solution[number]+"<BR>"
}
}
ReportScore(correct)
}

Multiple Choice Test```

```Note that you must enable Javascript on your browser for this tutorial to work:
From Netscape, click "Options", "Network Preferences", "Languages", and check the "Enable JavaScript" box```
```Click in the appropriate box for each question, then click "Done" at the bottom.
10 marks for each correct answer.```
```1. Question 1

Answer 1
Answer 2
Answer 3
Answer 4

```
```2. Question 2

Answer 1
Answer 2
Answer 3
Answer 4

```
```3. Question 3

Answer 1
Answer 2
Answer 3
Answer 4

```
```4. Question 4

Answer 1
Answer 2
Answer 3
Answer 4

```
```5. Question 5

Answer 1
Answer 2
Answer 3
Answer 4

```
```6. Question 6

Answer 1
Answer 2
Answer 3
Answer 4

```
```7. Question 7

Answer 1
Answer 2
Answer 3
Answer 4

```
`8. Question 8`
```Answer 1
Answer 2
Answer 3
Answer 4

```
`9. Question 9`
```Answer 1
Answer 2
Answer 3
Answer 4

```
`10. Question 10`
```Answer 1
Answer 2
Answer 3
Answer 4

```
`  `