Skip to main content

Text entry

The candidate types a short answer into a box in a sentence.

For authors

A text entry interaction is a small box in the text. Its answer is declared as text, a whole number or a number, and AIB compares it as that type.

Try it

Try itNumeric entry with a toleranceA response declared as a float, a pattern mask over the text that was typed, and scoring by qti-equal rather than by exact match.

A measuring cylinder is graduated every 5 ml. The bottom of the meniscus sits half way between the 25 ml and the 30 ml marks.

Read the volume to one decimal place, in millilitres: ml

Answering

The candidate types in the box. A pattern mask can limit what may be typed (digits only, for example), with a message of its own when the text does not fit. expected-length sizes the box, and the qti-input-width-* classes set its width directly.

Scoring

On the Scoring tab, Answer type chooses Text, Whole number or Number.

  • Text can be compared Case-sensitive or not, and several Accepted answers can each earn points.
  • A number can be accepted within a tolerance (an amount either side, or a percentage) or after rounding. The sample accepts answers within a tolerance.

In the editor

While typing, choose Text entry from the Inline menu. Its correct answer is a box on the Scoring tab, since there is no option to mark.