Tipus de pregunta respostes incrustades (Cloze): diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
Cap resum de modificació
Cap resum de modificació
 
(Hi ha 39 revisions intermèdies del mateix usuari que no es mostren)
Línia 2: Línia 2:


{{Questions}}
{{Questions}}
'''Embedded answers (Cloze)''' questions consist of a passage of text (in Moodle format) that has various answers embedded within it, including multiple choice, short answers and numerical answers.
Les preguntes de '''Respostes incrustades (Cloze)''' consisteixen en passatges de text (en el format del Moodle) que tenen algunes respostes amagades, algunes de múltiple resposta, d'altres de resposta breu i respostes numèriques.


There is currently no graphical interface to create these questions - you need to specify the question format using the text box or by importing them from external files.  
De moment encara no hi ha cap interfície gràfica per a crear aquestes preguntes - heu d'especificar el format de la pregunta utilitzant el quadre de text o important-les des de fitxers externs.  


Lots of people suggest that [http://hotpot.uvic.ca/ Hot Potatoes] software is the easiest way to create Embedded answer (Cloze) questionsOnce you have created your questions on your PC, you can then import them into Moodle's quiz module.
Molta gent opina que amb [http://hotpot.uvic.ca/ Hot Potatoes] és una manera més fàcil per crear aquest tipus de preguntesUn cop creades en el vostre PC, les podeu importar al mòdul de qüestionari del Moodle.


Import Limitation: You can only import one Embedded Answer question at a time. So if you were thinking of creating a .txt file to import several of these questions at one time it won't work.
Límit d'importació: només podeu importar una pregunta de resposta incrustada a la vegada. Si penseu en a crear un fitxer .txt file per importar diverses preguntes a la vegada, no funcionarà.


==Question set-up==
==Configuració d'una pregunta==


#Select the question category
#Escolliu una categoria.
#Give the question a descriptive name - this allows you to identify it in the question bank.
#Doneu un nom descriptiu a la pregunta per tal de poder-la identificar al Banc de preguntes.
#Enter the passage of text (in Moodle format - see [[Embedded_Answers_%28Cloze%29_question_type#Format|Format]] below) into the 'question text' field.
#Introduïu un passatge del text (en format Moodle - veure [[Tipus_de_pregunta_respostes_incrustades_(Cloze)#Format|Format]] més avall) al quadre de text.
#Select an image to display if you want to add a picture to the question. For the student, it appears immediately above the question text.
#Podeu seleccionar una imatge per a mostrar si voleu introduir una fotografia a la pregunta. Per a l'estudiant apareixerà immediatament després de la pregunta.
#Set the 'default question grade' (i.e. the maximum number of marks for this question).
#Poseu la 'Qualificació per defecte de la pregunta' (i.e. la màxima puntuació per a aquesta pregunta).
#Set the 'Penalty factor' (see [[Embedded_Answers_%28Cloze%29_question_type#Penalty_factor|Penalty factor]] below).
#Poseu el 'Factor de penalització' (veure [[Tipus_de_pregunta_respostes_incrustades_(Cloze)#Factor_de_penalització|Factor de penalització]] més avall).
#''Moodle 1.7+:'' If you wish, add general feedback. This is text that appears to the student after he/she has answered the question.
#Moodle 1.7+: Si ho desitgeu, pode afegir una retroacció general. És un petit text que apareix a l'estudiant després d'haver respost la pregunta.
#''Moodle 1.7+:'' The editor has been modified and allows you to test if your syntax is good.
#''Moodle 1.7+:'' L'editor ha sigut modificat i ara permet comprovar si la vostra sintaxi és bona.
::The different questions elements decoded will be displayed and syntax errors pinpoint.
#''Cliqueu'' "Desa els canvis".
::However, it cannot check if the question decoded is two questions in one because of an error syntax.
#Click Save changes to add the question to the category.


=== Penalty factor ===
=== Factor de penalització ===


The 'penalty factor' only applies when the question is used in a quiz using adaptive mode - i.e. where the student is allowed multiple attempts at a question even within the same attempt at the quiz. If the penalty factor is more than 0, then the student will lose that proportion of the '''maximum''' grade upon each successive attempt. For example, if the default question grade is 10, and the penalty factor is 0.2, then each successive attempt after the first one will incur a penalty of 0.2 x 10 = 2 points.
El 'Factor de penalització' només s'aplica quan la pegunta s'utilitza dins d'un qüestionari - i.e. on l'estudiant té permès fer múltiples intents-. Si el factor de penalització es major que 0, llavors l'estudiant perdrà la proporció de la màxima puntuació a cada intent successiu. Per exemple, si la puntuació de la pregunta és per defecte 10, i el factor de penalització és 0.2, llavors cada intent successiu després de primer tindrà una penalització de 0.2 x 10 = 2 punts.


==Question rendering==
==Renderització de pregunta==


The question answer INPUT HTML ELEMENT ( Short and Numerical) or SELECT HTML ELEMENT (multichoice) are normally displayed in-line with the text.
La resposta de la pregunta INPUT HTML ELEMENT ( Curta i numèrica) o SELECT HTML ELEMENT (multiresposta) es mostren normalment dins la mateixa línia de text.


The size of INPUT HTML ELEMENT ( Short and Numerical) will be adjustable to the length of the longest answer (good or bad) + a random number (0 to 15% total length).([[User:Pierre Pichet|Pierre Pichet]] 15:37, 26 January 2008 (CST))
La mida de l'entrada de l'element HTML (INPUT HTML ELEMENT) ( Curt i numèric) serà ajustable a la mida de la llargada de la resposta més llarga (bona o dolenta) + un número aleatori (0 a 15% de llargada total).([[User:Pierre Pichet|Pierre Pichet]] 15:37, 26 January 2008 (CST)).
La mida s'ajustarà a la llargada de la resposta de l'estudiant quan s'esdevingui el procés de qualificació i retroacció.


The size will adjust to the length of the student response when displayed in the grading and feedback process.
La mida de l'element SELECT HTML ELEMENT (multiresposta) s'ajustarà automàticament en la resposta més llarga.


The size of the SELECT HTML ELEMENT (multichoice) adjusts itself automatically to the longest answer.
==Format==
La [http://moodle.org/help.php?module=quiz&file=multianswer.html documentació d'ajuda per a les respostes incrustades del Moodle] dóna un exemple.
 
Per a més detalls sobre el format de les preguntes incrustades, veure [[Tipus_de_pregunta_respostes_incrustades_(Cloze)#Explicació_de_sintaxis_detallada|Explicació de sintaxis detallada]] més avall.
 
Si la resposta correcta conté '''{ } # ~ / "''' o '''\''' haureu de posar '''\''' davant de cada caràcter. En la retroacció '''~ '''i '''}''', sinó això serà interpretat com ''la següent resposta'' o ''final de la secció de respostes breus'' respectivament. Símbols per a cites: '''"''' pot portar problemes. Utilitzeu l'entitat HTML: '''&''' '''''cita'';''' (sense espais entre '''&''' i '''cita;'''). Si voleu tenir símbols matemàtics pot haver-hi problemes amb la barra ('''\''') utilitzada en expressions TeX. Una alternativa pot ser utilitzar caràcters [[unicode]].  


==Format==


The Moodle [http://moodle.org/help.php?module=quiz&file=multianswer.html help documentation for Cloze questions] gives an example.
===Exemples===
El text següent crea una pregunta de respostes incrustades simple. Feu correspondre les ciutats següents amb l'estat correcte:


For full details of the format for embedded-answers questions, see the [[Embedded_Answers_%28Cloze%29_question_type#Detailed_syntax_explanations|detailed syntax explanation]] below.
* San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
* Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}
* Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
* Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}


NB: Be careful when copying a cloze type question into the WYSIWYG HTML editor, as line breaks tend to get added, which destroys the question.
La capital de França és {1:SHORTANSWER:=París#Felicitats!~%50%Marsella#No, aquesta és la segona ciutat més llarga de França.~*#Reposta errònia. La capital de França és París}.


If the correct answer contains { } # ~ / " or \ you will have to escape them by putting a \ in front of each such character. In the feedback ~ and } must be escaped otherwise it will be interpreted as ''the next answer'' or ''end of the short answer section'' respectively. Quotation signs: " can lead to trouble anyhow in both places. Use the HTML entity: & quot; (without the space between ''&'' and ''quot;''). If you want to have Mathematical symbols there can be problems with the \ used in TeX expressions. One alternative can be to use [[unicode]] characters.  
Tingueu en compte que aquest exemple només treballarà amb Moodle 1.5.2


See the notes further down about numerical embedded question!
Algunes coses per fixar-se:
* Les respostes incrustades es representen entre '''{}'''.
* El número que apareix al començament d'un ''buit'' de resposta indica el pes de la pregunta, i no té res a veure amb l'ordre de la pregunta. En l'exemple següent el ''buit'' ha rebut un pes de '2':


===Examples===
{2:SHORTANSWER:%100%CALL#Si, l'has encertada!~%0%?#Com ho he de dir? No importa escriure en majúscules o en minúscules.}
The following text creates a simple embedded-answers question:


Match the following cities with the correct state:
Nota: Aneu en compte al copiar una pregunta a l'editor gràfic d'HTML, perquè els salts de línia tendeixen a moure's cap a la còpia i això pot fer desaparèixer la pregunta.
* San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
* Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}
* Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
* Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}
The capital of France is {1:SHORTANSWER:=Paris#Congratulations!~%50%Marseille#No, that
is the second largest city in France (after Paris).~*#Wrong answer. The capital of France
is Paris, of course.}.


Some things to note:
* L'opció correcta en cada cas és precedida per el signe '''=''' o '''%100%'''.
* The individual embedded answers are represented by the code in braces {}.
* El text que apareix després de '''#''' que segueix cada opció és la retroacció que l'estudiant veurà després d'haver triat la seva resposta.
* The number at the start is the 'weight', so in this case each answer contributes an equal share of the overall grade.
* Si l'estudiant introdueix 'Marsella' en l'últim exemple, la seva puntuació serà de 50% del total.
* The correct option in each case is preceded either by an = sign or by %100%.
* L'asterisc '''*''' que precedeix la retroacció de la resposta equivocada, al final de l'exemple, significa que l'estudiant veurà aquesta retroacció si no introdueix una altra cosa que "París" o "Marsella".
* The text appearing after the # that follows each option is the feedback that the student will see if they choose that option.
* If the student enters 'Marseille' in the final example, they score 50% of the total grade.
* The asterisk * preceding the "Wrong answer" feedback in the final example means that the student will see this feedback if they enter anything other than "Paris" or "Marseille".


==Detailed syntax explanations==
==Explicació de sintaxis detallada==
# all question items within a cloze-type question are coded inside curled braces { }
# Totes les preguntes d'un qüestionari van entre '''{ }'''.
# the number which appears between the opening brace and the colon {1: is the weighting of that item; if it is set at 1 for all the items, it needs not be specified, so you can have {:
# El número que apareix entre la clau que obre i els dos punts '''{1:''' indica el pes de l'ítem; si tots els ítems valen 1, no caldrà especificar res i només s'haurà de posar '''{:'''
# after the colon we have the item question type: MULTICHOICE, SHORTANSWER, NUMERICAL
# Després dels dos punts pot aparèixer un dels tes tipus l'ítem: MULTICHOICE, SHORTANSWER, NUMERICAL.
# '''NOTE'''.- If you have installed the [http://moodle.org/mod/data/view.php?d=13&rid=338 REGEXP question type plugin] you can also use the REGEXP question type
# '''NOTA'''.- Si teniu instal·lat el [http://moodle.org/mod/data/view.php?d=13&rid=338 connector REGEXP] podeu utilitzar també el tipus de pregunta REGEXP.
# the syntax for MULTICHOICE and SHORTANSWER is the same; the only difference is in the displaying of the item to the student
# La sintaxis de MULTICHOICE i SHORTANSWER es la mateixa; l'única diferència és la visualització de l'ítem de l'estudiant.
# the order of the various answers is indifferent (except if you want a catch-all for wrong answers, see #12 below)
# L'ordre de les diverses respostes és indiferent (excepte si voleu introduir un ''catch-all'' en les respostes incorrectes, veure #12 més avall)
# a correct answer is preceded with the equal sign = or a percentage (usually %100%)
# Una resposta correcta és precedida per el símbol ''' = ''' o un percentatge (normalment '''%100%''')
# a wrong answer is preceded with nothing or a percentage (usually %0%)
# Una resposta incorrecta no la precedeix res o un percentatge (normalment '''%0%''').
# you can allocate some points between 0 and 100 to some answers, if you put the appropriate percentage
# Podeu assignar alguns punts entre 0 i 100 si poseu el percentatge apropiat.
# all answers except the first one are separated from one another by the tilde ~ sign
# Totes les respostes excepte la primera estan separades les unes de les altres pel símbol '''~'''.
# answers can be followed by an optional feedback message, preceded with the # sign; if there is no feedback message, the # sign can be present or absent, it does not matter
# Les respostes poden contenir un missatge de retroacció, aquest precedir pel símbol '''#'''; si no hi ha missatge de retroacció, el símbol # pot estar present o no. No és rellevant.
# note that the feedback message is displayed in a small popup window (if and when feedback has been declared accessible to the students in the Quiz settings) upon mouse hovering. The popup window has a title "feedback" and you can use HTML tags to format your feedback. In some browsers (For example IE5.5) the form fields can cover part of the feedback windows. It can help to not have the formfields for the answers too close to each other.
# Tingueu en compte que el missatge de retroacció es visualitza en una petita finestra emergent (sempre i quan la resposta és accessible per als estudiants en el qüestionari). La finestra emergent té com a títol "retroacció" i podeu utilitzar l'HTML per a crear-la. En alguns navegadors (per exemple IE5.5) els camps de formularis poden cobrir per de les finestres de retroacció.  
# in the SHORTANSWER type you may want to put a catch-all (wrong) answer in order to send a "wrong, try again" feedback; you can do this by inserting an asterisk '''*''' as '''the very last expected answer''' in your formula
# En les respostes breus (SHORTANSWER) podeu posar si voleu un ''catch-all'' per a les respostes errònies per mostrar un comentari tipus "resposta incorrecta, proveu-ho de nou" com a retroacció; per fer-ho introduïu un asterisc '''*''' com indicador de resposta errònia.
# unfortunately in MULTICHOICE MODE it is not possible to get the answers to be scrambled
# Desafortunadament, en el tipus MULTICHOICE no és possible obtenir respostes amb graus de puntuació diferents.
# unfortunately in SHORTANSWER mode it is not possible to make the answers case-sensitive except by using a workaround explained in [http://moodle.org/mod/forum/discuss.php?d=36430&parent=170308 this thread])
# Desafortunadament, en el tipus SHORTANSWER no és possible obtenir respostes sensibles a l'ús de majúscules/ minúscules a no ser que s'utilitzi un truc que s'explica en aquest [http://moodle.org/mod/forum/discuss.php?d=36430&parent=170308 enllaç]).


==Numerical Cloze questions==  
==Preguntes numèriques incrustades==  
 
 
From the student perspective, a numerical Cloze question looks just like a short-answer question or ''fill in the blanks''.
Des de la perspectiva de l'estudiant, una pregunta numèrica incrustada és com una pregunta de resposta breu.


The difference is that numerical answers are allowed to have an accepted error. This allows a continuous range of answers to be set. You can also express your answer in some different numerical formats. 23.4 23,4 (some countries use , as a decimal separator) and 2.34E+1 (meaning 2.34*10^1) would be interpreted as the same.
La diferència és que la pregunta de resposta numèrica permet cometre un error. Podeu expressar la resposta en diferents formats numèrics. 23.4 23,4 (en alguns països s'utilitza la coma (,) o el punt (.) com a separador decimal) i 2.34E+1 (significa 2.34*10^1) s'interpretaria com el mateix.


=== False positives ===
=== Falsos positius ===


{{Moodle 1.8}}'''Note:''' the following examples of false positives do '''not''' apply to Moodle 1.8+, where you cannot use percentages or fractions as the answers in a numerical Cloze test; Moodle will generate an error if you try to save such a question. However the following may be relevant for earlier versions of Moodle.
{{Moodle 1.8}}'''Nota:''' els exemples següents sobre falsos positius '''no''' són aplicables al Moodle 1.8+, on no es poden utilitzar percentatges ni fraccions com a respostes en un test de preguntes incrustades; Moodle generarà un error si intenteu guardar la pregunta. Els exemples següents serveixen per a versions anteriors al Moodle 1.8.


  More examples:  
  Més exemples:  
  0.5 accepts .5 0.5 ,5 0,5 0.500 5e-1 5E-1 but not 1/2 50%  
  0.5 acceptat .5 0.5 ,5 0,5 0.500 5e-1 5E-1 però no 1/2 50%  
  50% accepts 50% 50.0% 5E1% 50/100 even '''50/1000 50''' but not 500/1000 0.5  
  50% acceptat 50% 50.0% 5E1% 50/100 fins i tot '''50/1000 50''' però no 500/1000 0.5  
  1/2 accepts 1/2 '''1/3 1twenty''' but not 2/4 0.5 0,5 3/6 50% ½  
  1/2 acceptat 1/2 '''1/3 1twenty''' però no 2/4 0.5 0,5 3/6 50% ½  
  ½ accepts ½  
  ½ acceptat ½  
  HALF doesn't even accept HALF (maybe '''0'''?)  
  HALF doesn't even accept HALF (maybe '''0'''?)  


If you want to accept several variants you can have them in the same {} but '''be careful, notice the "false positives" in bold'''!
===Sintaxi per a les preguntes numèriques incrustades===
 
===Syntax for numerical Cloze questions===
 
The format of a NUMERICAL Cloze question is similar to that of the other Cloze types and they can be mixed in the same question. As with other Cloze tests, you write your question or incomplete text, and add the Cloze code at the point where the student is supposed to enter their numerical answer.


An example of the syntax used is shown below:
El format és semblant al dels altres tipus de preguntes incrustades. Com en altres proves  incrustades (Cloze), escriviu la vostra pregunta o text incomplet, i afegiu el codi incrustat (Cloze) allà on se suposa que l'estudiant ha d'introduir la seva resposta numèrica.


'''Note: ''' It is preferable to write the code in 'source code' mode. The WSIWYG editor can insert linebreaks that make the question not function. The linebreak in the example box below is for readability only! A problem with these questions is the readability of the code! :(
Un exemple:
 
 
  {2:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8  
  {2:NUMERICAL:=23.8:0.1#Retroacció per la resposta correcta 23.8  
  ~%50%23.8:2#Feedback for ½credit near correct answer}.  
  ~%50%23.8:2#Retroacció per ½ puntuació, propera a la resposta correcta}.  
 
 
In this example:
En aquest exemple:
* 2: is the question point weight, which means that this question has twice the weight in the final point(s) for this question as other partial answers with weight 1 (or no declared weight - you can start with {: for the default weight 1) in the same question.
* 2: és és el pes de la pregunta, which means that this question has twice the weight in the final point(s) for this question as other partial answers with weight 1 (or no declared weight - you can start with {: for the default weight 1) in the same question.
* NUMERICAL: says what kind of question it is. It must be in CAPS.  
* NUMERICAL: says what kind of question it is. It must be in CAPS.  
* =23.8:0.1 = or %100% means correct if the answer is 23.8 with an accepted error of 0.1, then any number between 23.7 and 23.9 will be accepted as correct. (In the GIFT numerical question one can express an interval like this 13..15 or 14:1 but in Cloze only 14:1 works.)  
* =23.8:0.1 = or %100% means correct if the answer is 23.8 with an accepted error of 0.1, then any number between 23.7 and 23.9 will be accepted as correct. (In the GIFT numerical question one can express an interval like this 13..15 or 14:1 but in Cloze only 14:1 works.)  

Revisió de 17:15, 29 abr 2008

Nota: Pendent de Traduir. Hi ha Voluntaris!?     (altres pàgines pendents)


Les preguntes de Respostes incrustades (Cloze) consisteixen en passatges de text (en el format del Moodle) que tenen algunes respostes amagades, algunes de múltiple resposta, d'altres de resposta breu i respostes numèriques.

De moment encara no hi ha cap interfície gràfica per a crear aquestes preguntes - heu d'especificar el format de la pregunta utilitzant el quadre de text o important-les des de fitxers externs.

Molta gent opina que amb Hot Potatoes és una manera més fàcil per crear aquest tipus de preguntes. Un cop creades en el vostre PC, les podeu importar al mòdul de qüestionari del Moodle.

Límit d'importació: només podeu importar una pregunta de resposta incrustada a la vegada. Si penseu en a crear un fitxer .txt file per importar diverses preguntes a la vegada, no funcionarà.

Configuració d'una pregunta

  1. Escolliu una categoria.
  2. Doneu un nom descriptiu a la pregunta per tal de poder-la identificar al Banc de preguntes.
  3. Introduïu un passatge del text (en format Moodle - veure Format més avall) al quadre de text.
  4. Podeu seleccionar una imatge per a mostrar si voleu introduir una fotografia a la pregunta. Per a l'estudiant apareixerà immediatament després de la pregunta.
  5. Poseu la 'Qualificació per defecte de la pregunta' (i.e. la màxima puntuació per a aquesta pregunta).
  6. Poseu el 'Factor de penalització' (veure Factor de penalització més avall).
  7. Moodle 1.7+: Si ho desitgeu, pode afegir una retroacció general. És un petit text que apareix a l'estudiant després d'haver respost la pregunta.
  8. Moodle 1.7+: L'editor ha sigut modificat i ara permet comprovar si la vostra sintaxi és bona.
  9. Cliqueu "Desa els canvis".

Factor de penalització

El 'Factor de penalització' només s'aplica quan la pegunta s'utilitza dins d'un qüestionari - i.e. on l'estudiant té permès fer múltiples intents-. Si el factor de penalització es major que 0, llavors l'estudiant perdrà la proporció de la màxima puntuació a cada intent successiu. Per exemple, si la puntuació de la pregunta és per defecte 10, i el factor de penalització és 0.2, llavors cada intent successiu després de primer tindrà una penalització de 0.2 x 10 = 2 punts.

Renderització de pregunta

La resposta de la pregunta INPUT HTML ELEMENT ( Curta i numèrica) o SELECT HTML ELEMENT (multiresposta) es mostren normalment dins la mateixa línia de text.

La mida de l'entrada de l'element HTML (INPUT HTML ELEMENT) ( Curt i numèric) serà ajustable a la mida de la llargada de la resposta més llarga (bona o dolenta) + un número aleatori (0 a 15% de llargada total).(Pierre Pichet 15:37, 26 January 2008 (CST)). La mida s'ajustarà a la llargada de la resposta de l'estudiant quan s'esdevingui el procés de qualificació i retroacció.

La mida de l'element SELECT HTML ELEMENT (multiresposta) s'ajustarà automàticament en la resposta més llarga.

Format

La documentació d'ajuda per a les respostes incrustades del Moodle dóna un exemple.

Per a més detalls sobre el format de les preguntes incrustades, veure Explicació de sintaxis detallada més avall.

Si la resposta correcta conté { } # ~ / " o \ haureu de posar \ davant de cada caràcter. En la retroacció ~ i }, sinó això serà interpretat com la següent resposta o final de la secció de respostes breus respectivament. Símbols per a cites: " pot portar problemes. Utilitzeu l'entitat HTML: & cita; (sense espais entre & i cita;). Si voleu tenir símbols matemàtics pot haver-hi problemes amb la barra (\) utilitzada en expressions TeX. Una alternativa pot ser utilitzar caràcters unicode.


Exemples

El text següent crea una pregunta de respostes incrustades simple. Feu correspondre les ciutats següents amb l'estat correcte:

  • San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
  • Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}
  • Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
  • Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}

La capital de França és {1:SHORTANSWER:=París#Felicitats!~%50%Marsella#No, aquesta és la segona ciutat més llarga de França.~*#Reposta errònia. La capital de França és París}.

Tingueu en compte que aquest exemple només treballarà amb Moodle 1.5.2

Algunes coses per fixar-se:

  • Les respostes incrustades es representen entre {}.
  • El número que apareix al començament d'un buit de resposta indica el pes de la pregunta, i no té res a veure amb l'ordre de la pregunta. En l'exemple següent el buit ha rebut un pes de '2':

{2:SHORTANSWER:%100%CALL#Si, l'has encertada!~%0%?#Com ho he de dir? No importa escriure en majúscules o en minúscules.}

Nota: Aneu en compte al copiar una pregunta a l'editor gràfic d'HTML, perquè els salts de línia tendeixen a moure's cap a la còpia i això pot fer desaparèixer la pregunta.

  • L'opció correcta en cada cas és precedida per el signe = o %100%.
  • El text que apareix després de # que segueix cada opció és la retroacció que l'estudiant veurà després d'haver triat la seva resposta.
  • Si l'estudiant introdueix 'Marsella' en l'últim exemple, la seva puntuació serà de 50% del total.
  • L'asterisc * que precedeix la retroacció de la resposta equivocada, al final de l'exemple, significa que l'estudiant veurà aquesta retroacció si no introdueix una altra cosa que "París" o "Marsella".

Explicació de sintaxis detallada

  1. Totes les preguntes d'un qüestionari van entre { }.
  2. El número que apareix entre la clau que obre i els dos punts {1: indica el pes de l'ítem; si tots els ítems valen 1, no caldrà especificar res i només s'haurà de posar {:
  3. Després dels dos punts pot aparèixer un dels tes tipus l'ítem: MULTICHOICE, SHORTANSWER, NUMERICAL.
  4. NOTA.- Si teniu instal·lat el connector REGEXP podeu utilitzar també el tipus de pregunta REGEXP.
  5. La sintaxis de MULTICHOICE i SHORTANSWER es la mateixa; l'única diferència és la visualització de l'ítem de l'estudiant.
  6. L'ordre de les diverses respostes és indiferent (excepte si voleu introduir un catch-all en les respostes incorrectes, veure #12 més avall)
  7. Una resposta correcta és precedida per el símbol = o un percentatge (normalment %100%)
  8. Una resposta incorrecta no la precedeix res o un percentatge (normalment %0%).
  9. Podeu assignar alguns punts entre 0 i 100 si poseu el percentatge apropiat.
  10. Totes les respostes excepte la primera estan separades les unes de les altres pel símbol ~.
  11. Les respostes poden contenir un missatge de retroacció, aquest precedir pel símbol #; si no hi ha missatge de retroacció, el símbol # pot estar present o no. No és rellevant.
  12. Tingueu en compte que el missatge de retroacció es visualitza en una petita finestra emergent (sempre i quan la resposta és accessible per als estudiants en el qüestionari). La finestra emergent té com a títol "retroacció" i podeu utilitzar l'HTML per a crear-la. En alguns navegadors (per exemple IE5.5) els camps de formularis poden cobrir per de les finestres de retroacció.
  13. En les respostes breus (SHORTANSWER) podeu posar si voleu un catch-all per a les respostes errònies per mostrar un comentari tipus "resposta incorrecta, proveu-ho de nou" com a retroacció; per fer-ho introduïu un asterisc * com indicador de resposta errònia.
  14. Desafortunadament, en el tipus MULTICHOICE no és possible obtenir respostes amb graus de puntuació diferents.
  15. Desafortunadament, en el tipus SHORTANSWER no és possible obtenir respostes sensibles a l'ús de majúscules/ minúscules a no ser que s'utilitzi un truc que s'explica en aquest enllaç).

Preguntes numèriques incrustades

Des de la perspectiva de l'estudiant, una pregunta numèrica incrustada és com una pregunta de resposta breu.

La diferència és que la pregunta de resposta numèrica permet cometre un error. Podeu expressar la resposta en diferents formats numèrics. 23.4 23,4 (en alguns països s'utilitza la coma (,) o el punt (.) com a separador decimal) i 2.34E+1 (significa 2.34*10^1) s'interpretaria com el mateix.

Falsos positius

Moodle1.8 Nota: els exemples següents sobre falsos positius no són aplicables al Moodle 1.8+, on no es poden utilitzar percentatges ni fraccions com a respostes en un test de preguntes incrustades; Moodle generarà un error si intenteu guardar la pregunta. Els exemples següents serveixen per a versions anteriors al Moodle 1.8.

Més exemples:	 
0.5 acceptat .5 0.5 ,5 0,5 0.500 5e-1 5E-1 però no 1/2 50% 	 
50% acceptat 50% 50.0% 5E1% 50/100 fins i tot 50/1000 50 però no 500/1000 0.5	 
1/2 acceptat 1/2 1/3 1twenty però no 2/4 0.5 0,5 3/6 50% ½	 
½ acceptat ½	 
HALF doesn't even accept HALF (maybe 0?)	 

Sintaxi per a les preguntes numèriques incrustades

El format és semblant al dels altres tipus de preguntes incrustades. Com en altres proves incrustades (Cloze), escriviu la vostra pregunta o text incomplet, i afegiu el codi incrustat (Cloze) allà on se suposa que l'estudiant ha d'introduir la seva resposta numèrica.

Un exemple:

{2:NUMERICAL:=23.8:0.1#Retroacció per la resposta correcta 23.8	 
~%50%23.8:2#Retroacció per ½ puntuació, propera a la resposta correcta}. 	 

En aquest exemple:

  • 2: és és el pes de la pregunta, which means that this question has twice the weight in the final point(s) for this question as other partial answers with weight 1 (or no declared weight - you can start with {: for the default weight 1) in the same question.
  • NUMERICAL: says what kind of question it is. It must be in CAPS.
  • =23.8:0.1 = or %100% means correct if the answer is 23.8 with an accepted error of 0.1, then any number between 23.7 and 23.9 will be accepted as correct. (In the GIFT numerical question one can express an interval like this 13..15 or 14:1 but in Cloze only 14:1 works.)
  • #Feedback for correct answer 23.8 is preceded by #
  • ~%50%23.8:2 ~ is the separator for answer alternatives %50% means this answer would get 50% of the score that the more precise answer had gotten. Because the tolerance here is 2, 21.8 to 25.8 would get this point and feedback.

The feedback (which is seen within a popup window when the user hovers over the answer space) is formattable with HTML tags. For example, if you want an exponent, surround it with superscript tags: <sup> </sup>. You can even include pictures in the feedback popup, but you must clean out all " characters and save while still in source code mode (not WYSIWYG). So, this works in feedback popup:

#See this picture:<br><img src=Something.gif />}	 

but not this:

#See this picture:<br><img src="Something.gif" />}	 

(ALGEBRA and TEX filters don't work in the feedback popups, but they can be very useful in the question writing for math/science expressions). But you can use [unicode] characters.

If you want to give feedback for any answer that didn't fit the intervals you already have specified feedback for, add some BIG general intervals, like for positive answers (if they aren't bigger than 20000 you could add:

~%0%10000.0001:10000#Feedback for unspecified not_right answers}	 

This would give feedback for anything from 0.0001 to 20000.0001 (that hadn't already gotten feedback). I didn't want to include 0 since that special case as well as negative ought to have specific reactions.

~%0%0#Hey! It can't be zero	 
~%0%-10000.0001:10000#We just want the size here,	 
so a negative value is not what we want}			 

Numerical questions could, before version 1.7, also have case-insensitive non-numerical answers. This is useful whenever the answer for a numerical question is something like +inf, -inf, NaN etc.

See also

This information was drawn from: