Example of a Single Algebraic Answer
To see the following question as it would be presented by the gateway,
select here.
You need a browser with forms capability for this to work.
In the following example, we have omitted some beginning and
ending material that is standard HTML. See the section showing the
complete source file template for more
information. We do show all the material between the
<QUESTION...> and </QUESTION> tags.
The Question
First, we indicate the type of question and give the text of the
question itself.
<QUESTION TYPE=Single-Expression>
Using vector notation, vector <B>A</B>=<VAR>3i+4j</VAR>.
Vector <B>B</B>=<VAR>-i+2j</VAR>. What is the sum of
these two vectors, <B>A</B>+<B>B</B>?
The Answer
Then we give the correct answer (remember that the
<ANSWER...> causes a form to be automatically
included in the text; this will allow the reader to submit her
answer). Also note that it is safer to wrap the expression
of the answer in double quotes.
<ANSWER ans="2i+6j">
The Responses
No <RESPONSES>. . .</RESPONSES> section is given,
therefore the tutorial gateway will automatically generate default
responses for all submitted answers. See
multiple-choice example 1 for examples of explicitly
provided responses.
The Hints
Hints are quite appropriate for this question. Here are the two supplied:
<HINTS>
<HINT> Add the numeric values of the components.
<HINT> The answer is <VAR>2i+6j</VAR>.
</HINTS>
The End
All questions end with this:
</QUESTION>