phptest-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phptest-users] correct responses marked wrong on certain questions


From: cfischer5
Subject: [Phptest-users] correct responses marked wrong on certain questions
Date: Thu, 13 Jan 2005 20:31:43 -0500
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)

Very occasionally, I write questions where the program has problems matching the correct answer with the user's correct choice. I know that there are problems if one of the answers is 0 (zero) so I usually write zero rather than 0. And I am careful to use &lt; for < though the program always changes it. Here is a question that is graded incorrectly (html copied from the answer page). Can you see anything in it that would cause this?

<td width="100%" class="even"><b>Question #: 30: </b>What can be determined about the contents of the list array? <pre><b> import java.util.Random;

       public class Java1318
       {
           public static void main(String args[])
           {
               int list[] = {0,1,2,3,4,5,6,7,8,9};
               Random r = new Random();
               for (int k = 0; k < list.length ; k++)
                   list[r.nextInt(10)] = k;
               System.out.println();
           }
       }
</b></pre>
<br />
<b>User's answer: </b><span class="incorrect">The original list array contains {0,1,2,3,4,5,6,7,8,9} and then random elements of the list array are changed to the current value of k.</span><br /> <b>Correct answer: </b>The original list array contains {0,1,2,3,4,5,6,7,8,9} and then random elements of the list array are changed to the current value of k.
<br />
<b>Additional Notes: </b><br /><br />
</td>

</tr>
</table>
<table width="90%" cellspacing="3" cellpadding="8">
<tr>

Thanks!
Charlotte Fischer

PS: A great program! I have used it for several years (upgraded to 6.3) and have made a few modifications, such as being able to set the view date, and adding a fifth question choice. I have a database of about 1700 questions (with some repeats since I reuse questions on different tests).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]