version 1.2, 2002/07/18 15:52:27
|
version 1.3, 2005/02/15 14:50:02
|
Line 10
|
Line 10
|
A Numerical Response problem has seven major parts by default: |
A Numerical Response problem has seven major parts by default: |
|
|
\begin{enumerate} |
\begin{enumerate} |
\item The \textbf{Script}. The script is the heart of advanced Numerical Response |
\item The \textbf{Script} is the heart of advanced Numerical Response |
problems. It can be used to decide some of the parameters of the problem, |
problems. It can be used to decide some of the parameters of the problem, |
compute the answer to the problem, and do just about anything else you can |
compute the answer to the problem, and do just about anything else you can |
imagine. The Script language is \textbf{Perl}. You do not need to know Perl |
imagine. The Script language is \textbf{Perl}. You do not need to know Perl |
to use the \textbf{Script} block, as we will be stepping through some advanced |
to use the \textbf{Script} block because we will be stepping through some advanced |
examples in this chapter, but knowing Perl can help. |
examples in this chapter, but knowing Perl can help. |
\item Like other problem types, the \textbf{Text Block} is used to display the |
\item Like other problem types, the \textbf{Text Block} is used to display the |
problem the student will see. In addition, you can place variables in the |
problem the student will see. In addition, you can place variables in the |
\textbf{Text Block} based on computations done in the \textbf{Script}. |
\textbf{Text Block} based on computations done in the \textbf{Script}. |
\item The \textbf{Answer} is the answer the system is looking for. This can also |
\item The \textbf{Answer} is the answer the system is looking for. This can also |
use parameters from the \textbf{Script} block, allowing the answer to be |
use parameters from the \textbf{Script} block, allowing the answer to be |
computed dynamically. |
|
|
|
|
computed dynamically. |