```
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)
//NOTE:  PLACE HINTS HERE IF THE HINT BUTTON IS TO BE USED
Hint[0] = "Hint01"
Hint[1] = "Hint02"
Hint[2] = "Hint03"
Hint[3] = "Hint04"
Hint[4] = "Hint05"
Hint[5] = "Hint06"
Hint[6] = "Hint07"
Hint[7] = "Hint08"
Hint[8] = "Hint09"
Hint[9] = "Hint10"

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 Percent = "<H2>Score : "+Math.round((correct-hints)/Total_Question*100)		 + "%</2><HR>"
if (hints == .5)
{var Hint_string = "(1 Hint used)"}
else
{var Hint_string = "("+hints*2+" Hints Used)"}
SecWin.document.write(Hint_string)
msg = MustHave1 +Percent + msg  + "</BODY></HTML>"
SecWin.document.write(msg)
msg = ""  // Clear message
}
function Hintfunction(q)
{
hints +=.5
return 0
}
{
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)
}

MUE 332Multiple 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 points for each correct answer. Hints cost 5 points each.```
```1. Question 1

```
```2. Question 2

```
```3. Question 3

```
```4. Question 4

```
```5. Question 5

```
```6. Question 6

```
```7. Question 7

```
`8. Question 8`
```Answer 1

```
`9. Question 9`
```Answer 1

```
`10. Question 10`
```Answer 1

```
`  `