Example of a Single Numeric 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-Numeric>
	
	A two dimensional vector can be written using the notation
	<VAR>3i+4j</VAR>.  What is its magnitude?

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).
	<ANSWER ans=5.0>

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 three supplied:
	<HINTS>
	<HINT> The magnitude of a vector is the square root of the 
	sum of the squares of the magnitudes of its components.
	<HINT> The components of a vector written in vector 
	notation (i.e., <VAR>Xi+Yj</VAR>) are the terms that are 
	added together (<VAR>Xi</VAR> and <VAR>Yj</VAR>, in this case).
	<HINT> The magnitude of a component along one of the coordinate
	axes, such as <VAR>Xi</VAR>, is simply the number <VAR>X</VAR>.
	</HINTS>

The End

All questions end with this:
	</QUESTION>