--- loncom/html/adm/help/tex/adaptive_hints.tex 2013/07/12 03:02:38 1.3 +++ loncom/html/adm/help/tex/adaptive_hints.tex 2013/08/05 14:35:15 1.4 @@ -1,6 +1,6 @@ \label{adaptive_hints} \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 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 \textless hintpart on="default" \textgreater\textless /hintpart \textgreater tags. +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. There are five types of hint condition: \begin{itemize} @@ -15,9 +15,9 @@ There are five types of hint condition: \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. +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} - + -

What is the equation of the line + +

What is the equation of the line which passess through ($x1,$y1) and ($x2,$y2)?

y = - - - - - - + + + + + + You have inverted the slope in the question. Slope is -(y2-y1)/(x2 - x1) you have the slope as (x2-x1)/(y2-y1). - - - -
+(y2-y1)/(x2 - x1) you have the slope as (x2-x1)/(y2-y1). + + + +
\end{verbatim} \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. +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} - A car travels 10 km in 10 min. + A car travels 10 km in 10 min. What is the speed of the car? - + - + You multiplied the distance by the time. Remember speed = distance/time - - - - + + + + \end{verbatim} \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 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. +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. \begin{enumerate} \item optionresponse \begin{verbatim} - + For each of the following rock types, indicate - whether or not the rock is a volcanic rock. - + whether or not the rock is a volcanic rock. + - - Schist - - - Marble - - - Basalt - - + + Schist + + + Marble + + + Basalt + + Gabbro - - + + Granite - + + name="metamorphic"/> + name="plutonic" /> Schist and Marble are both examples of metamorphic rocks as described on page 2 of the textbook. -

-
- +

+
+ Granite and Gabbro are both examples of igneous rocks that crystallized beneath the surface, i.e., - they are plutonic rocks.

-
+ they are plutonic rocks.

+ Volcanic rocks are described on page 22 - of the textbook. - -
-
-
+ of the textbook. + + + +
\end{verbatim} \item optionresponse with concept groups \begin{verbatim} - + Choose the likely plate boundary type, where you are most likely to encounter each of the following - geologic features or phenomena. - + geologic features or phenomena. + - - - Normal faults - - + + + Normal faults + + Strike-slip faults - - + + Thrust faults - - - - + + + + Large Magntitude, deep and intermediate - focus earthquakes - - + focus earthquakes + + Large magnitude, shallow focus earthquakes - - + + Low magnitude shallow focus earthquakes - - - - + + + + Broad area of elevated topography with a - central rift valley. - - + central rift valley. + + A narrow linear fault zone with limited - topgraphic expression. - - + topgraphic expression. + + A deep trench adjacent to a volcanic arc. - - - - - + + + + + Explosive volcanism involving volatile-rich - viscous magma. - - + viscous magma. + + Non-explosive outpourings of low-viscosity - magma. - - - No volcanic activity. - - - - + magma. + + + No volcanic activity. + + + + + name="quakes" /> + name="volcactivity" /> - + name="relief" /> + 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. - - - + + + 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. - - - On a broad scale topography is an expression + elevated at mid-ocean ridges. + + + 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. -

-
- - The characteristics of plate boundaries are - described on page 52 of the textbook. - -
-
-
+

+ + + The characteristics of plate boundaries are + described on page 52 of the textbook. + + + +
\end{verbatim} \end{enumerate} @@ -236,79 +236,83 @@ the name of the hint condition, and the \begin{verbatim} +name="igneous"> +\end{verbatim} + In order to trigger display of this hint you also need to create a - block that will include a textblock that +$<$hintpart$>$$<$/hintpart$>$ block that will include a textblock that contains the text of the actual hint. - + +\begin{verbatim} + This type of rock is composed of interlocking - crystals, a characteristic of igneous rocks. - + crystals, a characteristic of igneous rocks. + \end{verbatim} The complete radiobutton response would look as follows: \begin{verbatim} - + Which of the following is a sedimentary rock? - - - - + + + + Granite - - + + - - + + Gabbro - - + + - + Schist - + - - + + Gneiss - - + + - - + + Shale - - - - + + + + Sandstone - - + + - - + + +name="igneous" > +name="metamorphic"> - + This type of rock is composed of interlocking - crystals, a characteristic of igneous rocks.

-
- + crystals, a characteristic of igneous rocks.

+
+ This type of rock is composed of oriented crystals, a -characteristic of foliated metamorphic rocks. - -
-
-
+characteristic of foliated metamorphic rocks. + + + +
\end{verbatim} \item String Hint condition @@ -316,28 +320,28 @@ characteristic of foliated metamorphic r 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} - - Which US state has Lansing as its capital? - - - - - - - + + Which US state has Lansing as its capital? + + + + + + + - The state capital of Wisconsin is Madison. - + The state capital of Wisconsin is Madison. + - The state capital of Minnesota is St. Paul. - - + The state capital of Minnesota is St. Paul. + + The state you are looking for is also known as the - 'Great Lakes State' - - - - + 'Great Lakes State' + + + + \end{verbatim} \end{enumerate}