Submit a request
Submit a request

stringMatch Scoring Method

The stringMatch method is used for literal string comparison. This compares the value set by authors in validation against a student's response, and evaluates if the two values are the same. stringMatch is a simple comparison method, and it does not take the syntax and data type set in the validation area into account.

Additional Options

  • Ignore leading and trailing spaces
    Ignores spaces before and after a value, i.e. " a " will be treated as "a".

  • Treat multiple spaces as one
    Multiple spaces will be ignored and treated as one, i.e. "a   b" is the same as "a b".
  • Inverse result
    This will invert the response specified in validation. This means that any response will be correct except for the one set by the author. 

Examples

Example 1 - Ignore leading and trailing spaces + Treat multiple spaces as one

The student's response should match the exact value set in validation. Ignore leading and trailing spaces and Treat multiple spaces as one are enabled.

Screen_Shot_2019-02-11_at_13.54.24.png

Figure 1: Ignore leading and trailing spaces + Treat multiple spaces as one

Example 2

In this example, Ignore leading and trailing spaces and Treat multiple spaces as one are disabled. Only "6" will be accepted as correct response.

Screen_Shot_2019-02-11_at_13.56.13.png

Figure 2: Disabling Ignore leading and trailing spaces and Treat multiple spaces as one

 

 

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity by clicking here.