Jump to: Site Navigation

NAME - Contexts for matching problems.


Implements contexts for string-valued answers especially for matching problems (where you match against A, B, C, D, and so on).

There are two contexts defined here,


The second allows the students to enter lists of strings, while the first does not.

You can add new strings to the context as needed (or remove old ones) via the Context()->strings->add() and Context()-strings->remove() methods, eg.


Use string_cmp() to produce the answer checker(s) for your correct values. Eg.


when there are two answers, the first being "A" and the second being "B".

Site Navigation