String Question Type¶
Students enter text that is compared for exact or approximate match.
Basic Syntax¶
[string]
answer = correct text;
Options¶
answer (required)¶
The correct text response.
[string]
answer = photosynthesis;
casesensitive¶
true— Exact case match requiredfalse(default) — Case-insensitive comparison
[string]
answer = Paris;
casesensitive = false; // Accepts "paris", "PARIS", "Paris"
acceptmultiple¶
For accepting multiple valid answers, list them with | separator.
[string]
answer = mitochondria | mitochondrion | mitochondrial matrix;
casesensitive = false;
Examples¶
Single-Word Answer¶
$capital = "Madrid";
What is the capital of Spain?
[string]
answer = $capital;
casesensitive = false;
Multiple Acceptable Answers¶
What is another word for "big"?
[string]
answer = large | huge | vast | enormous;
casesensitive = false;
Chemical Formula¶
What is the chemical formula for table salt?
[string]
answer = NaCl;
casesensitive = true; // Case matters in chemistry
Short Sentence¶
Complete the sentence: "The process of converting sunlight into chemical energy is called ___."
[string]
answer = photosynthesis | photosynthetic process;
casesensitive = false;
Grading¶
For exact match:
- Student enters "Photosynthesis" → Answer is "photosynthesis" with casesensitive = false → Correct
- Student enters "photosythesis" (misspelled) → Incorrect
Multiple acceptable answers use | (pipe) separator. Student must match one exactly.
Tips¶
- Use for short answers only: For longer essays, consider Essay type with human grading
- Consider common misspellings: Use
acceptmultipleto include likely variants - Be careful with case sensitivity: Usually not needed unless teaching proper nouns or technical terms
- Use clear, unambiguous answers: Avoid answers that could be interpreted multiple ways
See Also¶
- Essay — For longer responses that require human grading
- Calculated — For mathematical expressions
- Options Common to All Types — Hints, feedback, display options