-
Notifications
You must be signed in to change notification settings - Fork 3
Error with some values in multiple choice #14
Description
Hi, first of all thanks for your great job.
Yesterday i discovered this extension for Visual Studio and i was very happy...till one bug or problem happens.
I wrote some questions of multiple choice, only one answer, every right answer was +100% and every wrong -15%
So one question would be:
// === Pregunta 01===
::Llenguatges compilats::Quin d’aquests llenguatges no es un llenguatge compilat? {
~%-15%Fortran #Fortran igual que C s'ha de compilar i linkar. Resposta correcta Html
~%-15%Pascal #Pascal igual que C s'ha de compilar i linkar. Resposta correcta Html
=%100%Html #Resposta correcta
~%-15%C++ #C++ igual que C s'ha de compilar i linkar. Resposta correcta Html
}
So this gives no error with your extension, and i could watch the preview without problems...
I then went to:https://fuhrmanator.github.io/GIFT-grammar-PEG.js/editor/editor.html
And try the above question, again without problem at all...
The surprise came when i want to import them to the moodle of my intitute.
It raised an error of not qualifiend
So after some test and error, i found this solution:
// === Pregunta 01===
::Llenguatges compilats::Quin d’aquests llenguatges no es un llenguatge compilat? {
~%-14.28571%Fortran #Fortran igual que C s'ha de compilar i linkar.
~%-14.28571%Pascal #Pascal igual que C s'ha de compilar i linkar.
=Html #Resposta correcta
~%-14.28571%C++ #C++ igual que C s'ha de compilar i linkar.
}
Seemed that when i want to create manually a multiple choice question in moodle, i have only the
100% ------------- 10%, 5%, -5%, -10%, -11.11111%. -12.5%, --14.28571. -16.6667% -----------------more
So seemed that not any value is allowed, for example you can write -7.5%
And the other detail is that if you wrote the right answer like:
=%100%Html...... in the preview of the question it appears the text %100%Html, so students can know what is the correct answer....you have to put only =Html
I know im on moodle 4, but not exact version as im not an admin... i think we are in 4.01
Hope you can investigate, and apply this modifcations to your extension.
Thanks