shadow
buttons Plugins Button

Navigation
Home
Counter
D.A.T.A.
makeMembers
Samples
Updates


Discussion
Recent Discussion
Create New Topic
List by Topic


Membership

Login



Welcome to the site for my Manila plugins!

DATA Advanced Strategies

Prev | Next | DATA Plugin Documentation

By modifiying the quiz1.htm web test file, you can rearrange the questions or change the type of an individual question.

At the top of the form, there are fields necessary to administer the test:

<FORM METHOD=POST ACTION="response">
<INPUT TYPE=hidden NAME="required" VALUE="All">
<INPUT TYPE=hidden NAME="course" VALUE="tryit">
<INPUT TYPE=hidden NAME="test" VALUE="quiz1"> 
<P> 
<TABLE CELLPADDING=2>
<TR><TD>First Name:</TD>
<TD><INPUT TYPE=text NAME=field-01 VALUE="\" SIZE=15 MAXLENGTH=15></TD></TR>
<TR><TD>Last Name:</TD>
<TD><INPUT TYPE=text NAME=field-02 VALUE="\" SIZE=20 MAXLENGTH=20></TD></TR>
<TR><TD>Social Security Number:</TD>
<TD><INPUT TYPE=text NAME=field-03 VALUE="\" SIZE=11 MAXLENGTH=11></TD></TR>
</TABLE>
<INPUT TYPE=hidden NAME=quest-01 VALUE="First Name">
<INPUT TYPE=hidden NAME=quest-02 VALUE="Last Name">
<INPUT TYPE=hidden NAME=quest-03 VALUE="Social Security Number">

The action of the FORM tag is always 'response'. The field named 'required' is either 'All' or is a list of the suffixes of the required fields (i.e., '-01,-03,002,003') Note that the name fields are called 'field-01', 'field-02' and 'field-03'. This keeps them alphabetically prior to the first question ('field001'). Notice that the names of the fields are always 'field' followed by a 3 digit number. The 'course' field is the name of the DATA category and the 'test' is the name of the test.

The hidden fields called 'quest-01' are used to respond with a name when a field is left empty.

You can change from radio button to check boxes:

   <LI TYPE="1">
      <INPUT TYPE=checkbox VALUE=CHECKED NAME=check001>
      <INPUT TYPE=hidden NAME=field001 VALUE="\">
      What type of interface does unix have?<BR>
      
      <INPUT TYPE=radio NAME=field001 VALUE="A">A. CLI<BR>
      <INPUT TYPE=radio NAME=field001 VALUE="B">B. CUI<BR>
      <INPUT TYPE=radio NAME=field001 VALUE="C">C. GLI<BR>
      <INPUT TYPE=radio NAME=field001 VALUE="D">D. GUI<BR>
      <INPUT TYPE=radio NAME=field001 VALUE="E">E. none of the above<BR>
      <INPUT TYPE=hidden NAME=quest001 VALUE="1">
   </LI>
   <BR>

   <LI TYPE="1">
      <INPUT TYPE=checkbox VALUE=CHECKED NAME=check001>
      <INPUT TYPE=hidden NAME=field001 VALUE="\">
      What type of interface does unix have?<BR>
      
      <INPUT TYPE=checkbox NAME=field001 VALUE="A">A. CLI<BR>
      <INPUT TYPE=checkbox NAME=field001 VALUE="B">B. CUI<BR>
      <INPUT TYPE=checkbox NAME=field001 VALUE="C">C. GLI<BR>
      <INPUT TYPE=checkbox NAME=field001 VALUE="D">D. GUI<BR>
      <INPUT TYPE=checkbox NAME=field001 VALUE="E">E. none of the above<BR>
      <INPUT TYPE=hidden NAME=quest001 VALUE="1">
   </LI>
   <BR>

The 'quest001' hidden field is used in the reply if a question is not answered. The hidden 'field001' is used to check to see that the question is not answered. If it was not present, there would be no way to see if no radio button was selected.

One very interesting variation is used in the Chemistry lab sheets originated by Dr. Van Der Sluys. He extensively modified the formula file to check submitted numbers for tolerance to the correct values. In addition, he wanted to base the subsequent calculations on the actual student measurements, not some ideal values.

He also pioneered the use of color in the response form. By modifying the HTML response form, he was able to obtain a red background in table cells of incorrect values. Thus, it was very easy for the students to visually see which calculations had to be redone. By combining this with allowing only a limited number of submissions, the goal was to get the students to do the lab calculations from their individual data correctly.

Any of the functions on the DATA Advanced page can be used in the formula file. Calculations are only limited by your imagination.

The formula file consists of a tab delimited file with 5 fields per line. The first field is the number of points for the question. The second field is the name of the response field that will be replaced. The third field is what will be put into the response if the formula is true (i.e., "correct"). The fourth field is what will be put into the response if the formula is false (i.e., "incorrect"). The fifth field is the actual formula that is evaluated (i.e., "field001 = = 'A'"). There are also formula lines to calculate the number of correct problems, incorrect problems, percent, total points, etc.

Here is a formula file from a simple 10 question quiz:

1   test001     correct     incorrect, the answer is A  field001=="A"
1   test002     correct     incorrect, the answer is C  field002=="C"
1   test003     correct     incorrect, the answer is B  field003=="B"
1   test004     correct     incorrect, the answer is C  field004=="C"
1   test005     correct     incorrect, the answer is B  field005=="B"
1   test006     correct     incorrect, the answer is C  field006=="C"
1   test007     correct     incorrect, the answer is A  field007=="A"
1   test008     correct     incorrect, the answer is C  field008=="C"
1   test009     correct     incorrect, the answer is E  field009=="E"
1   test010     correct     incorrect, the answer is B  field010=="B"
0   CORRECTNUM  x           y           rightcount
0   INCORRECTNUM    x       y           wrongcount
0   CORRECTPOINTS   x       y           rightpoints
0   TOTAL       x           y           rightpoints + wrongpoints
0   PERCENT     x           y           roundToPlaces((double(rightpoints)/
                                        double((rightpoints + wrongpoints))*100.0),1)

rightcount, wrongcount, rightpoints and wrongpoints are special values calculated by the grading program.


Prev | Next | DATA Plugin Documentation

Email this page Print this page

 
Shadow
shadow shadow
shadow
shadow shadow

Last update: Thursday, May 2, 2002 at 12:14:01 PM

Copyright 2017 Plugins