[QTI] Response processing of text entry interaction

Jean Pierre Malrieu jp.malrieu at free.fr
Sun Sep 14 11:56:07 BST 2008


Le 14 sept. 08 à 12:24, Graham Smith a écrit :
>
>
> You could do it like this:
>
> Use the substring operator to see if 'mechanization' and/or  
> 'fertilization' are present in the response string (You might like  
> to offer alternative spellings)
>
> Then you could do something like (this is pseudocode only)
>
> SCORE = 0
> if(mechanization is present) SCORE = SCORE + 0.5
> if(fertilization is present) SCORE = SCORE + 0.5
>
> It is not difficult to translate this code into response processing  
> XML
>
> Graham Smith

Thanks for your help.

But hum, I am afraid the semantics of the response processing tags are  
not very clear to me, and I did not find a lot of examples around.
First of all, how do you translate the several sucessive "if" of your  
pseudo-code? It seems that it is not possible to have two <responseIf>  
elements in the same response condition... So what is the way to go?  
several response conditions? Or one compound response condition with  
several <and> in the same responseIf element?
Then, I suppose the sum is supposed to be handled by means of the  
<sum> element, but I wouldn't mind having an example too.

So basically, if this is "not difficult" to you, an example of  
translation would be welcome!



Jean Pierre








More information about the IMS-QTI mailing list