albertel lon-capa-cvs@mail.lon-capa.org
Tue, 14 Sep 2004 22:00:42 -0000

albertel		Tue Sep 14 18:00:42 2004 EDT

Modified files:
Log:
- more correct latex

@@ -14,6 +14,7 @@
The syntax used to describe the foil(s) and the foil answer(s) differ for the five types:
1. Formula Hint condition
The formulahint tag takes three parameters: answer, name, and samples. The "name" is the unique name given to the hint condition. The formula answer for which you wish to provide conditional is included in the answer parameter. The samples parameter includes the points (or range of points) over which sampling of the student's submitted answer and the formula included in the formula hint answer parameter are to be compared. The syntax is the same as used to specify sampling points in the samples parameter of the formula reponse tag itself. The formula submitted by the student is evaluated at the sample points for the hint and the calculated values are compared with the corresponding values determined by evaluating the "hint" answer at the same sampling points. A close correspondence between the two sets of values will trigger the hint action specified in the <hintpart > tag.
+\begin{verbatim}
<problem >
<script type="loncapa/perl" ># Enter computations here
\$x1 = random(2,4,1);
@@ -46,10 +47,12 @@
</hintgroup >
</formularesponse >
</problem >
+\end{verbatim}

2. Numerical Response condition
The numericalhint tag takes four parameters: answer, name, unit and format. The "name" is the unique name given to the hint condition. The numerical answer for which you wish to provide conditional is included in the answer parameter. Student submission of that answer in combination with the "unit" parameter in the hint condition will trigger the hint action specified in the <hintpart > tag.

+\begin{verbatim}
<problem > <startouttext />A car travels 10 km in 10 min. What is the speed of the car?<endouttext />
<responseparam description="Numerical Tolerance" default="2%" type="tolerance" name="tol" />
@@ -64,9 +67,13 @@
</hintgroup >
</numericalresponse >
</problem >
+\end{verbatim}
+
3. Option Response Hint condition
There are two types of option response hint conditions: one for standalone foils and one for concept groups. In both cases the option hint tag includes two parameters: answer and name for standalone foils, and concept and name for foils grouped together in a concept group. For the answer parameter, the names and submitted values for each of the foils that are being included in the hint condition are provided in a hash, i.e., in the format: ('Foil1'=>'True','Foil2'=>'False'). In the case of a conditional hint for a concept group, the format of the concept parameter is also a hash that links the name of each concept group included in the hint condition to either 'correct' or 'incorrect' - e.g., <optionhint concept="('buoyancy'=>'correct','density'=>'correct')" name="fluids" / > If 'correct' is specified for a named concept then when the conditional hint is evaluated answers for each of the foils selected by a student must be correct for the hint action to be triggered. If anything other than 'correct' is provided in the concept hash in the optionhint tag then then students answers will be compared with the set answers for the foils in the concept group and as long as at least one answer is incorrect (i.e., the concept group was not correctly answered) then the corresponding hint action will be triggered.
(a) optionresponse
+
+\begin{verbatim}
<problem >
<startouttext />For each of the following rock types, indicate whether or not the rock is a volcanic rock.<endouttext / >
<optionresponse max="10" randomize="yes" >
@@ -104,7 +111,11 @@
</hintgroup >
</optionresponse >
</problem >
+\end{verbatim}
+
(b) optionresponse with concept groups
+
+\begin{verbatim}
<problem >
<startouttext />Choose the likely plate boundary type, where you are most likely to encounter each of the following geologic features or phenomena.<endouttext / >
<optionresponse max="10" randomize="yes" >
@@ -173,11 +184,14 @@
</hintgroup >
</optionresponse >
</problem >
+\end{verbatim}
+

The radiobutton hint tag takes two parameters: answer and name.  The name is
the name of the hint condition, and the answer is an array. The first element of the array will be 'foil'; the remaining elements are the names of the foils that you require to have been checked by the student for the hint to be displayed. For example, if you create a radiobutton response problem with six foils named: granite, gabbro, gneiss, shale, sandstone and schist, and you want your hint named: igneous to be displayed when either granite or basalt had been checked your radiobutton hint would be as follows:

+\begin{verbatim}
In order to trigger display of this hint you also need to create a
@@ -186,8 +200,11 @@
<startouttext />This type of rock is composed of interlocking crystals, a
characteristic of igneous rocks.<endouttext / >
</hintpart >
+\end{verbatim}
+
The complete radiobutton response would look as follows:

+\begin{verbatim}
<problem >
<startouttext />
Which of the following is a sedimentary rock?
@@ -248,9 +265,12 @@
</hintgroup >
</problem >
+\end{verbatim}

5. String Hint condition
The radiobutton hint tag takes two parameters: answer and name. The name is the name of the hint condition, and the answer is a text string. The type parameter allows you to choose between case sensitive, case insensitive, and case insensitive in any order. A simple example is shown below.
+
+\begin{verbatim}
<problem >
<startouttext />Which US state has Lansing as its capital?<endouttext / >