This example illustrates how to accept an answer that consists of words.
Question name! Highest mountain on the Moon
Global variables a=1;
Question text! String of characters answer
Part's mark* 1
Answer type Algebraic formula
Grading criteria* Absolute error == 0
Placeholder name #1
Part's text What is the name of the highest mountain on the Moon?
Valid answers are Mons Huygens, Mount Huygens and Huygens, as well as a*b, a b, b,
302741 and any formula that evaluates to a*b, b, or 302741.
The value 302741 is simply a random value unlikely to be given as an answer. a and b are defined such that a*b = b in order to accept
a b (i.e. Mons Huygens or Mount Huygens) and b (i.e. Huygens) as valid answers.
The answers a b and b can be prevented by replacing a by say a302741 and b by
b302741 (as it is done in the xml file).
The Formulas question should look like this: