1

我正在用一个多答案复选框问题进行资格测试。

<AnswerSpecification>
  <SelectionAnswer>
    <StyleSuggestion>checkbox</StyleSuggestion>
    <Selections>
      <Selection>
        <SelectionIdentifier>grammar</SelectionIdentifier>
        <Text>Bad grammar.</Text>
      </Selection>
      <Selection>
        <SelectionIdentifier>spelling</SelectionIdentifier>
        <Text>Bad spelling</Text>
      </Selection>
      <Selection>
        <SelectionIdentifier>punctuation</SelectionIdentifier>
        <Text>Bad punctuation</Text>
      </Selection>
      ...
    </Selections>
  </SelectionAnswer>
</AnswerSpecification>

问题显示得很好,但是 AnswerKey.xml 可以验证,但不能正常工作。

<Question>
 <QuestionIdentifier>my_question_id</QuestionIdentifier>
 <AnswerOption>
   <SelectionIdentifier>grammar</SelectionIdentifier>
   <AnswerScore>5</AnswerScore>
 </AnswerOption>
 <AnswerOption>
   <SelectionIdentifier>punctuation</SelectionIdentifier>
   <AnswerScore>5</AnswerScore>
 </AnswerOption>
</Question>

如果工人同时选择“语法”和“标点符号”,最终的分数应该是 10,但结果是零。

其他人有这个问题吗?

谢谢,

琳达

4

2 回答 2

2

我认为您必须将两个答案一起指定为第三种响应模式:

<Question>
 <QuestionIdentifier>my_question_id</QuestionIdentifier>
 <AnswerOption>
   <SelectionIdentifier>grammar</SelectionIdentifier>
   <AnswerScore>5</AnswerScore>
 </AnswerOption>
 <AnswerOption>
   <SelectionIdentifier>punctuation</SelectionIdentifier>
   <AnswerScore>5</AnswerScore>
 </AnswerOption>
 <AnswerOption>
   <SelectionIdentifier>grammar</SelectionIdentifier>
   <SelectionIdentifier>punctuation</SelectionIdentifier>
   <AnswerScore>10</AnswerScore>
 </AnswerOption>
</Question>
于 2013-06-28T21:04:55.230 回答
0

或者,您也可以将每个复选框选项设为自己独特的“问题”,然后您不必担心指定每个可能的排列。

于 2014-08-16T01:03:52.560 回答