[LON-CAPA-cvs] cvs: loncom /html/adm/help/tex adaptive_hints.tex
lira
lira at source.lon-capa.org
Thu Jul 11 23:02:38 EDT 2013
lira Fri Jul 12 03:02:38 2013 EDT
Modified files:
/loncom/html/adm/help/tex adaptive_hints.tex
Log:
reformated for pdf and added to pdf
-------------- next part --------------
Index: loncom/html/adm/help/tex/adaptive_hints.tex
diff -u loncom/html/adm/help/tex/adaptive_hints.tex:1.2 loncom/html/adm/help/tex/adaptive_hints.tex:1.3
--- loncom/html/adm/help/tex/adaptive_hints.tex:1.2 Tue Sep 14 22:00:41 2004
+++ loncom/html/adm/help/tex/adaptive_hints.tex Fri Jul 12 03:02:38 2013
@@ -1,19 +1,21 @@
\label{adaptive_hints}
-Adaptive or conditional hints in LON-CAPA
-Note: an extra space has been added before each tag closure in any tags included below so that the text will be displayed correctly by the FAQ-O-Matic.
-
-Hints are placed within <hintgroup ></hintgroup > tags. The first part of the hint is the condition, which includes a specification of the foil(s) and foil answer(s) required to trigger the hint. The answers specified in the hint condition are compared with the user's submission, and if the condition is met, the hint action included in the conditional hint block will be executed (for example this could be the display of a block of text). You can set multiple hint conditions for a particular problem. Hint conditions are identified by a name. The corresponding hint action includes this hint condition name in the "on" parameter). When a hint condition evaluates to true, the corresponding hint action is triggered. Besides providing hint actions within <hintpart on="NAME" ></hintpart > tags for each named (NAME) hint condition, a hint can be designated for display if none of the conditional hints evaluate to true. The default hint is not displayed if the conditions were met for !
any of the conditional hints. The default hint action is included between <hintpart on="default" ></hintpart > tags.
+\index{hints}\index{conditional hints}\index{adaptive hints}
+Hints are placed within \textless hintgroup \textgreater \textless \textbackslash hintgroup\textgreater tags. The first part of the hint is the condition, which includes a specification of the foil(s) and foil answer(s) required to trigger the hint. The answers specified in the hint condition are compared with the user's submission, and if the condition is met, the hint action included in the conditional hint block will be executed (for example this could be the display of a block of text). You can set multiple hint conditions for a particular problem. Hint conditions are identified by a name. The corresponding hint action includes this hint condition name in the "on" parameter. When a hint condition evaluates to true, the corresponding hint action is triggered. Besides providing hint actions within \textless hintpart on="NAME" \textgreater\textless /hintpart \textgreater tags for each named (NAME) hint condition, a hint can be designated for display if none of the conditio!
nal hints evaluate to true. The default hint is not displayed if the conditions were met for any of the conditional hints. The default hint action is included between \textless hintpart on="default" \textgreater\textless /hintpart \textgreater tags.
There are five types of hint condition:
-Formula Hint condition
-Numerical Hint condition
-Option Response Hint condition
-Radiobutton Hint condition
-String Hint condition
-
-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{itemize}
+ \item Formula Hint condition
+ \item Numerical Hint condition
+ \item Option Response Hint condition
+ \item Radiobutton Hint condition
+ \item String Hint condition
+\end{itemize}
+
+\noindent The syntax used to describe the foil(s) and the foil answer(s) differ for the five types:
+\begin{enumerate}
+\item 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 \textless hintpart \textgreater tag.
\begin{verbatim}
<problem >
<script type="loncapa/perl" ># Enter computations here
@@ -34,7 +36,8 @@
$wrongans =~ s/\+-/-/g;
$wrongans =~ s/-\+/-/g;
</script >
-<startouttext /><p > What is the equation of the line which passess through ($x1,$y1) and ($x2,$y2)?</p > y = <endouttext />
+<startouttext /><p > What is the equation of the line
+which passess through ($x1,$y1) and ($x2,$y2)?</p > y = <endouttext />
<formularesponse samples="x at -5:5#11" id="11" answer="$answer" >
<textline size="25" / >
<hintgroup >
@@ -49,33 +52,41 @@
</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.
+\item 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 \textless hintpart \textgreater tag.
\begin{verbatim}
-<problem > <startouttext />A car travels 10 km in 10 min. What is the speed of the car?<endouttext />
+<problem > <startouttext /> A car travels 10 km in 10 min.
+ What is the speed of the car?<endouttext />
<numericalresponse format="1f" unit="km/hr" answer="60">
- <responseparam description="Numerical Tolerance" default="2%" type="tolerance" name="tol" />
+ <responseparam description="Numerical Tolerance" default="2%"
+ type="tolerance" name="tol" />
<textline />
<hintgroup >
<numericalhint format="1f" unit="km/min" answer="100" name="speed">
- <responseparam description="Numerical Tolerance" type="tolerance" default="2%" name="tol" />
+ <responseparam description="Numerical Tolerance" type="tolerance"
+ default="2%" name="tol" />
</numericalhint >
<hintpart on="speed">
- <startouttext />You multiplied the distance by the time. Remember speed = distance/time<endouttext />
+ <startouttext />You multiplied the distance by the time. Remember
+ speed = distance/time<endouttext />
</hintpart >
</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 any!
thing 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
+\item 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'=\textgreater'True','Foil2'=\textgreater'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., \textless optionhint concept="('buoyancy'=\textgreater'correct','density'=\textgreater'correct')" name="fluids" / \textgreater If 'correct' is specified for a named concept then when the conditional hint is evaluated answers for each of the foils selected by a stu!
dent 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.
+
+\begin{enumerate}
+ \item optionresponse
\begin{verbatim}
<problem >
- <startouttext />For each of the following rock types, indicate whether or not the rock is a volcanic rock.<endouttext / >
+ <startouttext />For each of the following rock types, indicate
+ whether or not the rock is a volcanic rock.<endouttext / >
<optionresponse max="10" randomize="yes" >
<foilgroup options="('Yes','No')" >
<foil location="random" value="No" name="schist" >
@@ -95,29 +106,36 @@
</foil >
</foilgroup >
<hintgroup >
- <optionhint answer="('schist'=>'Yes','marble'=>'Yes')" name="metamorphic"/ >
- <optionhint answer="('gabbro'=>'Yes','granite'=>'Yes')" name="plutonic" / >
+ <optionhint answer="('schist'=>'Yes','marble'=>'Yes')"
+ name="metamorphic"/ >
+ <optionhint answer="('gabbro'=>'Yes','granite'=>'Yes')"
+ name="plutonic" / >
<hintpart on="metamorphic">
- <startouttext />Schist and Marble are both examples of metamorphic rocks
-as described on page 2 of the textbook.<br / ><br / ><endouttext / >
+ <startouttext />Schist and Marble are both examples of
+ metamorphic rocks as described on page 2 of the textbook.
+ <br / ><br / ><endouttext / >
</hintpart >
<hintpart on="plutonic" >
- <startouttext />Granite and Gabbro are both examples of igneous rocks that crystallized beneath the surface, i.e., they are plutonic rocks.<br / ><br / ><endouttext / >
+ <startouttext />Granite and Gabbro are both examples of
+ igneous rocks that crystallized beneath the surface, i.e.,
+ they are plutonic rocks.<br / ><br / ><endouttext / >
</hintpart >
<hintpart on="default" >
- <startouttext />Volcanic rocks are described on page 22 of the
-textbook.<endouttext / >
+ <startouttext />Volcanic rocks are described on page 22
+ of the textbook.<endouttext / >
</hintpart >
</hintgroup >
</optionresponse >
</problem >
\end{verbatim}
-(b) optionresponse with concept groups
+\item 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 / >
+ <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" >
<foilgroup options="('Convergent','Divergent','Transform')" >
<conceptgroup concept="faulting" >
@@ -133,32 +151,40 @@
</conceptgroup >
<conceptgroup concept="earthquakes" >
<foil name="deep" value="Convergent" >
- <startouttext / >Large Magntitude, deep and intermediate focus earthquakes<endouttext / >
+ <startouttext / >Large Magntitude, deep and intermediate
+ focus earthquakes<endouttext / >
</foil >
<foil name="shallow" value="Transform" >
- <startouttext / >Large magnitude, shallow focus earthquakes<endouttext />
+ <startouttext / >Large magnitude, shallow focus earthquakes
+ <endouttext />
</foil >
<foil name="lowmag" value="Divergent" >
- <startouttext / >Low magnitude shallow focus earthquakes<endouttext />
+ <startouttext / >Low magnitude shallow focus earthquakes
+ <endouttext />
</foil >
</conceptgroup >
<conceptgroup concept="topography" >
<foil name="gentle" value="Divergent" >
- <startouttext / >Broad area of elevated topography with a central rift valley.<endouttext / >
+ <startouttext / >Broad area of elevated topography with a
+ central rift valley.<endouttext / >
</foil >
<foil name="linear" value="Transform" >
- <startouttext / >A narrow linear fault zone with limited topgraphic expression.<endouttext / >
+ <startouttext / >A narrow linear fault zone with limited
+ topgraphic expression.<endouttext / >
</foil >
<foil name="trench" value="Convergent" >
- <startouttext />A deep trench adjacent to a volcanic arc.<endouttext / >
+ <startouttext />A deep trench adjacent to a volcanic arc.
+ <endouttext / >
</foil >
</conceptgroup >
<conceptgroup concept="volcanism" >
<foil name="explosize" value="Convergent" >
- <startouttext />Explosive volcanism involving volatile-rich viscous magma.<endouttext / >
+ <startouttext />Explosive volcanism involving volatile-rich
+ viscous magma.<endouttext / >
</foil >
<foil name="fluid" value="Divergent" >
- <startouttext />Non-explosive outpourings of low-viscosity magma.<endouttext / >
+ <startouttext />Non-explosive outpourings of low-viscosity
+ magma.<endouttext / >
</foil >
<foil name="nonvolcanic" value="Transform" >
<startouttext />No volcanic activity.<endouttext / >
@@ -166,39 +192,57 @@
</conceptgroup >
</foilgroup >
<hintgroup >
- <optionhint concept="('earthquakes' => 'incorrect')" name="quakes" / >
- <optionhint concept="('volcanism' => 'incorrect')" name="volcactivity" / >
- <optionhint concept="('topography' => 'incorrect')" name="relief" / >
+ <optionhint concept="('earthquakes' => 'incorrect')"
+ name="quakes" / >
+ <optionhint concept="('volcanism' => 'incorrect')"
+ name="volcactivity" / >
+ <optionhint concept="('topography' => 'incorrect')"
+ name="relief" / >
<hintpart on="volcanism" >
- <startouttext />Volcanism requires a source of magma. Magma can be generated by either a depression in the solidus caused by an influx of volatiles, or by decompression melting. Magma rich in volatiles tends to cause explosive volcanism.<endouttext / >
+ <startouttext />Volcanism requires a source of magma.
+ Magma can be generated by either a depression in the solidus
+ caused by an influx of volatiles, or by decompression melting.
+ Magma rich in volatiles tends to cause explosive volcanism.
+ <endouttext / >
</hintpart >
<hintpart on="quakes" >
- <startouttext />Earthquakes require brittle failure, so there is a correlation between the depth of earthquake foci and the geotherm. The geotherm is depressed in subduction zones, and elevated at mid-ocean ridges.<endouttext / >
+ <startouttext />Earthquakes require brittle failure, so there
+ is a correlation between the depth of earthquake foci and the
+ geotherm. The geotherm is depressed in subduction zones, and
+ elevated at mid-ocean ridges.<endouttext / >
</hintpart >
<hintpart on="relief" >
- <startouttext / >On a broad scale topography is an expression of density variation, as embodied in the concept of isostasy. Density variation in the earth is a function of temperature and composition. Cold oceanic crust entering a subduction zone is dense, whereas as magma is buoyant and of lower density.<br / ><br / ><endouttext / >
+ <startouttext / >On a broad scale topography is an expression
+ of density variation, as embodied in the concept of isostasy.
+ Density variation in the earth is a function of temperature and
+ composition. Cold oceanic crust entering a subduction zone is
+ dense, whereas as magma is buoyant and of lower density.
+ <br / ><br / ><endouttext / >
</hintpart >
<hintpart on="default" >
- <startouttext / >The characteristics of plate boundaries are described on page 52 of the textbook.<endouttext / >
+ <startouttext / >The characteristics of plate boundaries are
+ described on page 52 of the textbook.<endouttext / >
</hintpart >
</hintgroup >
</optionresponse >
</problem >
\end{verbatim}
+\end{enumerate}
-4. Radiobutton Hint condition
+\item Radiobutton Hint condition
- The radiobutton hint tag takes two parameters: answer and name. The name is
+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}
<radiobuttonhint answer="('foil','granite','gabbro')"
name="igneous" ></radiobuttonhint >
In order to trigger display of this hint you also need to create a
-<hintpart ></hintpart > block that will include a textblock that contains the text of the actual hint.
+<hintpart ></hintpart > block that will include a textblock that
+ contains the text of the actual hint.
<hintpart on="igneous" >
- <startouttext />This type of rock is composed of interlocking crystals, a
-characteristic of igneous rocks.<endouttext / >
+ <startouttext />This type of rock is composed of interlocking
+ crystals, a characteristic of igneous rocks.<endouttext / >
</hintpart >
\end{verbatim}
@@ -255,8 +299,8 @@
name="metamorphic" ></radiobuttonhint >
<hintpart on="igneous" >
- <startouttext />This type of rock is composed of interlocking crystals, a
-characteristic of igneous rocks.<br / ><br / ><endouttext / >
+ <startouttext />This type of rock is composed of interlocking
+ crystals, a characteristic of igneous rocks.<br / ><br / ><endouttext / >
</hintpart >
<hintpart on="metamorphic" >
<startouttext />This type of rock is composed of oriented crystals, a
@@ -267,7 +311,8 @@
</problem >
\end{verbatim}
-5. String Hint condition
+\item 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}
@@ -287,11 +332,12 @@
<startouttext />The state capital of Minnesota is St. Paul.<endouttext / >
</hintpart >
<hintpart on="default" >
- <startouttext />The state you are looking for is also known as the 'Great Lakes State'<endouttext / >
+ <startouttext />The state you are looking for is also known as the
+ 'Great Lakes State'<endouttext / >
</hintpart >
</hintgroup >
</stringresponse >
</problem >
\end{verbatim}
-
+\end{enumerate}
More information about the LON-CAPA-cvs
mailing list