--- loncom/homework/templates/custompartial.problem 2009/05/24 13:08:27 1.1 +++ loncom/homework/templates/custompartial.problem 2009/07/06 17:12:47 1.2 @@ -1,18 +1,22 @@ -Complete the sentence: - - - -The q brown fox jum over the zy d. - - - + -The quick brown fox jumps over the lazy dog. +Complete the sentence: - - @answer=('uick','ps','la','og'); + + + +The q brown fox jum over the zy d. + + + + +The quick brown fox jumps over the lazy dog. + + + +@answer=('uick','ps','la','og'); $correct=0; for ($i=0;$i<=$#$submission;$i++) { $$submission[$i]=~s/\s//gs; @@ -20,8 +24,8 @@ for ($i=0;$i<=$#$submission;$i++) { } if ($correct==$#answer+1) { return 'EXACT_ANS'; } if ($correct==0) { return 'INCORRECT'; } -return('ASSIGNED_SCORE',$correct/($#answer+1)); +return('ASSIGNED_SCORE',$correct/($#answer+1)); + - - +