QTI Imports Multiple Choice question as T/F if Question text contains the word "True"
GENERAL
TESTING
GENERAL
TESTING
Description
When importing a QTI version 1.2 compliant XML file that contains multiple choice questions, if the question text contains the word "True" in it, then the question will be imported as a True/False question. See attached Q/A file and testing guide to reproduce.
Notes:
Interestingly, the word "false" being present in a question's text (i.e. Question #1 of the attached Q/A file) does not seem to adversely affect the import of the question.
If you modify the word "true" to "correct," save, and then import, the question and its possible answers import just fine.
Tested/Verified in Trunk using Chrome Version 77.0.3865.90 (Official Build) (64-bit).
Bernardo Garcia Vila October 18, 2019 at 7:10 AM
Edited
First of all, for the provided xml it isn't finding any exact type ("Multiple Choice") and that's why it's making special guesses. Basically I'm going to alter the order on the item extraction strategy, but only for this case*: it will check the itemIntrospect before.
That part of Samigo has more than 10 years and it's quite ugly: lots of checks agains words inside the title and the likes...
EDIT: I'm not very keen on that, though. I'd rather use the itemIntrospect everytime an exact match hasn't been found AND itemIntrospect is not the default. Only on those cases I'd go for the terrible word guesses bit. What does everyone think?
When importing a QTI version 1.2 compliant XML file that contains multiple choice questions, if the question text contains the word "True" in it, then the question will be imported as a True/False question. See attached Q/A file and testing guide to reproduce.
Notes:
Interestingly, the word "false" being present in a question's text (i.e. Question #1 of the attached Q/A file) does not seem to adversely affect the import of the question.
If you modify the word "true" to "correct," save, and then import, the question and its possible answers import just fine.