40 lines
1.6 KiB
YAML
40 lines
1.6 KiB
YAML
---
|
|
metadata:
|
|
display_name: Text Input
|
|
markdown: |
|
|
A text input problem accepts a line of text from the student, and evaluates the input for correctness based on an expected answer.
|
|
|
|
The answer is correct if it matches every character of the expected answer. This can be a problem with international spelling, dates, or anything where the format of the answer is not clear.
|
|
|
|
>>Which US state has Lansing as its capital?<<
|
|
|
|
= Michigan
|
|
|
|
|
|
[explanation]
|
|
Lansing is the capital of Michigan, although it is not Michigan's largest city, or even the seat of the county in which it resides.
|
|
[explanation]
|
|
data: |
|
|
<problem>
|
|
<p>
|
|
|
|
A text input problem accepts a line of text from the
|
|
student, and evaluates the input for correctness based on an expected
|
|
answer.
|
|
</p>
|
|
<p>
|
|
The answer is correct if it matches every character of the expected answer. This can be a problem with international spelling, dates, or anything where the format of the answer is not clear.
|
|
</p>
|
|
|
|
<p>Which US state has Lansing as its capital? </p>
|
|
<stringresponse answer="Michigan" type="ci">
|
|
<textline size="20" label="Which US state has Lansing as its capital?"/>
|
|
</stringresponse>
|
|
<solution>
|
|
<div class="detailed-solution">
|
|
<p>Explanation</p>
|
|
<p>Lansing is the capital of Michigan, although it is not Michigan's largest city, or even the seat of the county in which it resides.</p>
|
|
</div>
|
|
</solution>
|
|
</problem>
|