This is addressed to all instructors wanting to extend their instructional
www-material by some interactive elements with reasonable technical effort.
Construction of new tasks with template.html
To construct exercises simply open the data file template.html with
the editor and then save these under any given name. The data file template.html
and respectively the copy of template.html can be subdivided into
You can edit this page as usual. Just modify the examples according to your purposes. Basically you will have to work with the commands copy, paste and modify.
| Simple
Multiple Choice |
an arbitrary series of alternatives; one correct answer |
| Extended
Multiple Choice |
an arbitrary series of alternatives; several correct answers |
| Short Answer | short free answer; three examplary comparisons; type of comparison:
exact correspondence or to be precise the model has to be contained in the answer |
| Essay-Test | extensive textual answer, which can only be compared with one examplary answer |
| Clickable Maps | you can click on a certain position in a graphic |
The German version contains some further variations. To use these variations effectively some of the text in these scripts would have to be translated into the appropriate language.
<FORM> <P><B>Who was the founder of psychoanalysis?</B></P> <P> 1.)<INPUT type=radio name="mc" value="0">Carl Gustav Jung<BR> 2.)<INPUT type=radio name="mc" value="0">Alfred Adler<BR> 3.)<INPUT type=radio name="mc" value="1">Sigmund Freud<BR> 4.)<INPUT type=radio name="mc" value="0">Wilhelm Reich</P> <P> <INPUT type=hidden name=feedback value ="The founder of psychoanalysis is Sigmund Freud. Important terms of his teachings are for example: Ich, Es, Überich, Libido, Übertragung, Angstabwehr, Verdrängung and Widerstand."> <!-- ---------------------------------------------------------------------------------------------------------------------------------------/!--> <INPUT type=hidden name=bearbeitet value = "false"> <INPUT TYPE="BUTTON" NAME="Aufgabe" VALUE= "Aufgabe bestätigen" ONCLICK= "mccheck(this.form)" > <INPUT TYPE="BUTTON" NAME="Lösung" VALUE= "Korrekte Lösung?" ONCLICK= "lmccheck(this.form)" > </FORM></P>value="0" means: This alternative is wrong.
value="1" means: This alternative is correct.
ATTENTION: Only one of these alternatives can be correct (therefore value=1 can only be chosen once)With the help of Netscape Composer you can very easily construct these tasks as you might see in the following screen shot: Here the field "feedback" has been clicked on and the dialogue field "HTML-Tag" has been opened. In this dialogue field you can simply write the text for your feedback in between the quotation marks.
(is only listed here simply to emphasise that you can test more than just simple facts with simple multiple choice: also this task is constructed in the shape of a table. This exercise has been taken from:
http://www2.gasou.edu/psychology/courses/dewey/ch05mcq.htm)
Matching tasks with multiple choice with several correct answers<P><FORM></P> <P><B>Please tick all the chancellors of The Federal Republic of Germany (up to 3.2.1997)!</B></P> <P> 1) <INPUT type=checkbox name="box" value="0">Stresemann<BR> 2) <INPUT type=checkbox name="box" value="0">Heus<BR> 3) <INPUT type=checkbox name="box" value="1">Adenauer<BR> 4) <INPUT type=checkbox name="box" value="1">Erhard<BR> 5) <INPUT type=checkbox name="box" value="0">Carstens<BR> 6) <INPUT type=checkbox name="box" value="1">Kiesinger<BR> 7) <INPUT type=checkbox name="box" value="0">Barzel<BR> 8) <INPUT type=checkbox name="box" value="0">Gerstenmaier<BR> 9) <INPUT type=checkbox name="box" value="1">Brandt<BR> 10)<INPUT type=checkbox name="box" value="1">Schmidt<BR> 11)<INPUT type=checkbox name="box" value="1">Kohl<BR> 12)<INPUT type=checkbox name="box" value="0">Lafontaine</P> <P><INPUT type=hidden name=feedback value ="The chancellors of Germany are (up to 3.2. 1997):<p>Adenauer<br>Erhard<br>Kiesinger<br>Brandt<br>Schmidt<br>Kohl"> <!-- ---------------------------------------------------------------------------------------------------------------------------------------/!--> <INPUT type=hidden name=bearbeitet value = "false"> <INPUT TYPE="BUTTON" NAME="Aufgabe" VALUE= "confirm answer" ONCLICK= "boxcheck(this.form)" > <INPUT TYPE="BUTTON" NAME="Lösung" VALUE= "solution?" ONCLICK= "lboxcheck(this.form)" > </FORM></P>
The necessary information is basically the same as in simple multiple choice tasks.The only difference is that there can be several correct alternatives (that means: value="1" can be used several times)
Matching tasks have to be understood as compact multiple choice tasks because every single matching task can be subdivided into several simple multiple choice tasks. It is possible here to represent the matching tasks with multiple choice with several correct alternatives as the following example shows:What person stands for which psychological movement?
Behaviourism Psychoanalysis Cognitivism Freud 1.) 2.) 3.) Skinner 4.) 5.) 6.) Piaget 7.) 8.) 9.) Watson 10.) 11.) 12.) The alternatives have to be numbered so that the automatical feedback can be given correctly.
<FORM method=post> <P><B>Who was the founder of psychoanalysis?</B></P> <P><INPUT type=text name="antwort" size=40 value="" >
<INPUT type=hidden name=muster1 value ="Sigmund Freud"> <INPUT type=hidden name=muster2 value ="Freud"> <INPUT type=hidden name=muster3 value =""> <INPUT type=hidden name=vergleich value = "="><BR> <INPUT type=hidden name=feedback value ="The founder of psychoanalysis is Sigmund Freud. Important terms of his teachings are for example: Ich, Es, Überich, Libido, Übertragung, Angstabwehr, Verdrängung and Widerstand."> <!-- ------------------------------------------------------/--> <INPUT type=hidden name=bearbeitet value = "false"> <INPUT TYPE="BUTTON" NAME="Aufgabe" VALUE= "confirm answer" ONCLICK= "shortcheck (this.form)" > <INPUT TYPE="BUTTON" NAME="Lösung" VALUE= "solution?" ONCLICK= "lshortcheck(this.form)" > </FORM></P>
All in all there are three examplatory answers (patterns [in German muster]) with whom the learner's answer can be compared.
How do you call the theoretical position within psychology which only claims observable behaviour to be relevant for an analysis and does not refer to interactions between stimulus and response?
In this question the exemplatory comparison "pattern contained in answer" has been used.
Many answers can be given correct feedback which would otherwise be noted as incorrect as a result of wrong spelling or correct extensions. <input type=hidden name=vergleich value ="!="> in correspondence with muster3="behavi" has the effect that for example all the following answers will be marked as correct: behavior, behaviorism, behaviourism, Behaviorism.
correct would be then for example: 0.5; .5; 0,50000Signification of the modifieable input variables (with an example)
<input type=hidden name=muster value ="0.5"> defines 0.5 as correct answer with which the student's answer is being compared; this answer is also defined as the only correct pattern for the solutionThe construction of these special short answer tasks is explained (in German) on the following website:
<input type=hidden name=ergebnisart value ="Zahl"> defines that the student's answer will be interpreted as number and not as an expression. ergebnisart value ="Ausdruck" also accepts arithmetical expressions as answers, e.g. 0.25*2. If the answer should be valued as number and/or expression, the the code should be: value="Ausdruck".
<input type=hidden name=toleranz value ="0"> marks the student's answer only as correct if it corresponds exactly with the pattern. If you have a tolerance of value = "0.01", then the student's answer will be marked correct if it does not vary more than 0.01 from the correct result (= the value of the input variable with the name muster. You can use an abritrary number of tolerance values.Furthermore only the input variable feedback will have to be changed as in example 1.
<input type=hidden name=feedback value ="1/2 = 0.5" >
Short - Answer (Zahl) - Aufgabe zur Überprüfung von Zahlen.
<P><FORM method=post> <B>How can escape learning be converted into avoidance learning? </B></P> <P><TEXTAREA name="antwort" rows=10 cols=50 wrap=virtual></TEXTAREA></P> <P><INPUT type=hidden name=feedback value="<b>by giving the animal a warning signal </b><p> If the animal receives a warning before an aversive stimulus, the animal has a chance to avoid the stimulus by performing some behavior, such as running away. This is avoidance conditioning or avoidance learning."> <!-- ---------------------------------------------------------------------------------------------------------------------------------------/!--> <INPUT type=hidden name=bearbeitet value = "false"> <INPUT TYPE="BUTTON" NAME="Aufgabe" VALUE= "confirm answer" ONCLICK= "essay (this.form)" > <INPUT TYPE="BUTTON" NAME="Lösung" VALUE= "solution?" ONCLICK= "lessay(this.form)" > </FORM>In this case the only possibility left is to define the exemplatory answer as value of the variable feedback.
The exercise above has been slightly modified and was taken from:
http://www2.gasou.edu/psychology/courses/dewey/ch05mcq.htm)
These exercises are not so easy to construct. If you have little time you should not even start with it, because you will have to put quite a lot of effort in it. (This exercise only functions locally if the file dreieck.gif lies in the same directory as this file!)Code for this example
<P> <FORM> <B>Please click on the hypotenuse!</B> </P><P> <IMG USEMAP="#dreieck" SRC="dreieck.gif" HEIGHT=132 WIDTH=204></P><P> <MAP NAME="dreieck"> <AREA Shape="poly" COORDS="14,21 28,21 188,108 188,113 14,21" href= "javascript:meldung('1','You have clicked on the hypotenuse')" onMouseOver="window.status='Please click with the mouse on the correct part!'; return true"; onMouseOut="window.status=''; return true" > <AREA Shape="rect" COORDS="181,14 188,101" href= "javascript:meldung('0','You have clicked on a leg')" onMouseOver="window.status='Please click with the mouse on the correct part!'; return true"; onMouseOut="window.status=''; return true"> <AREA Shape="rect" COORDS="22,14 187,20" href= "javascript:meldung('0','You have clicked on a leg')" onMouseOver="window.status='Please click with the mouse on the correct part!'; return true"; onMouseOut="window.status=''; return true"> </MAP> </P><P> <!-----------------------------------------------------------------------------------------------------------------------------------------/!--> <INPUT type=hidden name=bearbeitet value = "false"> <INPUT type=hidden name=feedback value ="The side y is the hypotenuse.<p> In a right-angled triangle the hypotenuse is the side which lies opposite the right angle. This is in this case the side y. The hypotenuse is the longest side in a triangle.<p> The two other sides which lie in a right angle are the legs."> <INPUT TYPE="BUTTON" NAME="Lösung" VALUE= "more explanation" ONCLICK= "graphfeedback(this.form)" > </FORM></P>
First of all you will need a www-compatible graphic (gif, jpg). Then the clickable parts of it should be defined with Area Shape and coordinates which can easily done with the appropriate program (e.g.: Getting Utilities for Creating Clickable Maps). Then the graphic will have to be integrated into the www as you can see above (maybe you will have to modify it slightly). If you have several exercises of this shape the names of the maps should be different from each other.Adaptions of the lines starting with <AREA...:
You can as well give further explanations in the hidden variable feedback.Shape and COORDS according to the values of the defined areas meldung ('first value=correct/wrong','second value= direct feedback'..), in the example
meldung ('1','You have clicked on the hypotenuse') = correct and special feedback
meldung ('0','You have clicked on a leg') = false and special feedback
The direct feedback should be relatively short and should not contain an html-code.
The feedback in the variable feedback can contain an html-code.Graphical exercises need a lot of effort and you will have to try out a lot of things. The example above which only serves as a means of demonstration could have been constructed much easier by using simple multiple choice. So make sure that you really need a graphic image for your exercise. The clicking on certain positions in a graphic image is only useful if it is hard to describe the same thing in words.
example: Help
Source text:
<A HREF="javascript:alert ('Here comes help')">help</A>
Simply copy the source text of the link and change the text according to
your wishes. In this manner you can even provide several dialogue fields
with help for one and the same exercise.
Example
If you have any difficulties in answering this question, Hint
1 and/or Hint
2 might help you.
with exercise hints:
<INPUT type=Button name=Aufgabenhinweis value=Aufgabenhinweis onClick = 'gibfeedback ("First think about the price of one CD!")'>
The contents of this exercise hint is given in between quotation marks
after gibfeedback. gibfeedback is a function of the script and shows
the text as it appears in the feedback window. If you want to integrate
a hint into a new exercise all you will have to do is to insert the button
"hint" in the new exercise and to slightly modify the text of your feedback.
With some experience you can easily construct the following tasks:
<INPUT type=Button name=Aufgabenhinweis value=Aufgabentip onClick = 'gibfeedback ("Are these quadrilaterals as well? <P><IMG SRC=vier1.gif HEIGHT=54 WIDTH=46><IMG SRC=vier2.gif HEIGHT=43 WIDTH=76>")'>
Here two new buttons have been created which write the information into the answer field when you click them. This looks as follows in the JavaScript:
<INPUT type=Button name=hint value="the word begins with" onClick ='JavaScript:this.form.antwort.value="w" '>Hint: You will find more exercises with the opportunity to give help after the answering of the question on the following site (in german): Übungsaufgaben mit antwortabhängiger Rückmeldung.
| relevant JavaScript
which has to be integrated |
procedure to save the files (with Netscape) | examplatory exercise html-site auf1.html with integrated
JavaScript template.js |
| template.js | please click with the right mouse button on these links and
save as
"template.js" resp. "auf1.html" |
auf1.html |
Try to open the file auf1.html after saving and check whether the exercise works.
As you might see in the file auf1.html the JavaScript is integrated as follows:
<SCRIPT SRC="template.js"> </SCRIPT>The exercises only work if auf1.html and template.js are in the same directory. If this is not the case you will have to modify the structure of the directory according to the file template.js.
important advice: The integration of the file template.js can lead to advantages when used intern, but it can also lead to complications (resp. a higher amount of effort) with users, who - worldwide - want to adapt the exercises locally. The integration is only an advantage if you want to construct a rather high amount of exercise html files. The JavaScript in every file is in any case less complicated and should always be used if you want to promote a worldwide revision of exercises on local computers without networks.
How to make changes in the script (only for users with appropriate experience):
If you only need very special types of tasks for your purposes you can simply cancel the parts of the script which do not belong to these tasks. This saves you space. It is of course possible to modify the verbal standard feedback and to include your own addition.
The size of the feedback window has been defined as
300 x 400 pixel which appeared to me to be sensible as the monitor has
a dissolving of 800 x 600 pixel. You can change the size of the window
according to your requirements by changing the values of the following
two variables:
var window width=300
var window height=400
In the JavaScript you can find these lines on top.
Changing the forms (only for users with appropriate experience!!!):
Please do not change!
How to deal with the variable feedback
Basically you should pay attention to the following points:
Despite of these points the script appears to me to be quite useful if it comes to the balance of effort and result. Its actual use will depend on the constructors of the exercises and in how far they are able to ask questions and give effective feedback.
Assessment, a very substantial text dealing with several aspects of assessment, beneath it a discussion of several exercise types, University of Technology, SydneyCopyright
Guidelines for Multiple Choice Question Creation (short and in brief)
How to write tests
HOW TO WRITE BETTER TESTS
Multiple Choice Formats
Writing Multiple Choice Items which Require Comprehension by Russ Dewey
Selection Test Items (comprehensive presentation with tips for the construction of selection tests))
Designing MCQ's (information supplied by: Helen Pownall )
© Bernhard Jacobs, 2001
free software only for noncommercial educational usage