« Formules: Substituants des parties » : différence entre les versions

De MoodleDocs
Aller à :navigation, rechercher
Aucun résumé des modifications
(Suppression double redirection)
 
(6 versions intermédiaires par un autre utilisateur non affichées)
Ligne 1 : Ligne 1 :
{{Question de type Formules}}
#REDIRECT [[Types_de_questions_tiers]]
{{Traduction}}
 
<div style="background-color:#d3ffd3;
            border:1px solid #abdaac;
            border-radius:4px;
            color:#4f691a;
            padding:5px 15px 15px;
            margin: 0;
            ">
  <p>Les espaces réservés sont utiles pour insérer le texte des parties et des cases de réponse à des points spécifiques de la question. Il y a deux types d'espaces réservés :</p>
  <ul>
    <li>l'espace réservé à une partie (discuté ci-dessous)</li>
    <li>l'espace réservé à une case de réponse (discuté à la page suivante)
  </ul>
</div>
 
The part's text placeholder allows inserting the text of a part at a particular point in the main question. The placeholder name is a string starting with <span style="font-family: monospace;font-size:113%;">#</span> and followed by a string of alphanumeric characters <span style="font-family: monospace;font-size:113%;">[A-Z a-z 0-9]</span>, such as <span style="font-family: monospace;font-size:113%;">#1</span>, <span style="font-family: monospace;font-size:113%;">#a</span>, <span style="font-family: monospace;font-size:113%;">#a1</span>, <span style="font-family: monospace;font-size:113%;">#1a</span>, <span style="font-family: monospace;font-size:113%;">#SubQuestion01</span>, etc. Note that although the designation of the part's text placeholders is quite flexible, a simple designation such as <span style="font-family: monospace;font-size:113%;">#1</span>, <span style="font-family: monospace;font-size:113%;">#2</span>, <span style="font-family: monospace;font-size:113%;">#3</span>, etc. is often sufficient.
 
At the point of insertion into the main question text, the placeholder name must be enclosed by curly braces <span style="font-family: monospace;font-size:113%;">{ }</span>. In the parts, the placeholder name is specified in the field called '''Placeholder name'''.
 
<div style="border:1px solid #bce8f1;border-radius:4px;padding: 0px 15px 0px; margin:20px 0 25px;">
<div style="font-family:Lucida Sans Unicode;font-size:150%;color:#f98012;margin:10px 0 10px;>Example</div>
 
Use part's text placeholders in the main question to insert the text of three parts.
 
<pre style="font-size:113%;width: 98%;">
General
  Question name*      A formulas question with three parts and part's text placeholders
Main question
  Question text*      With part's text placeholders
                      Two subquestions on addition:
                      {#1a}
                      {#1b}
                      One subquestion on subtraction:
                      {#2}
Part 1
  Part's mark*        1
  Answer type          Number
  Answer*              7
  Grading criteria*    Absolute error == 0
  Placeholder name    #1a
  Part's text          What is 3 + 4?
Part 2
  Part's mark*        1
  Answer type          Number
  Answer*              9
  Grading criteria*    Absolute error == 0
  Placeholder name    #1b
  Part's text          What is 4 + 5?
Part 3
  Part's mark*        1
  Answer type          Number
  Answer*              3
  Grading criteria*    Absolute error == 0
  Placeholder name    #2
  Part's text          What is 9 − 6?
</pre>
 
The formulas question should look like this:
 
[[File:FormulasDocumentation01.png|695px]]
 
<div style="margin:20px 0 20px;">
[http://35.193.77.29/mod/quiz/view.php?id=141 <span style="background-color:#f98012;box-shadow: 0 5px 10px #cbcbcb;border: none;color:white;padding: 8px 16px;text-align:center;text-decoration: none;cursor:pointer;">Play it</span>]   [[Formulas_question_type#Examples|Login info]]  ''(Open in new tab: Ctrl+Shift+Click)''
</div>
 
</div>
 
The same question can be obtained as follows. However, it is usually easier to use placeholders as above.
 
<pre style="font-size:113%;width: 98%;">
General
  Question name*      A formulas question with three parts and no part's text placeholders
Main question
  Question text*      Without part's text placeholders
                      Note: In general, it is more convenient to use placeholders as is done above.
Part 1
  Part's mark*        1
  Answer type          Number
  Answer*              7
  Grading criteria*    Absolute error == 0
  Placeholder name
  Part's text          Two subquestions on the addition:
                      What is 3 + 4?
Part 2
  Part's mark*        1
  Answer type          Number
  Answer*              9
  Grading criteria*    Absolute error == 0
  Placeholder name
  Part's text          What is 4 + 5?
Part 3
  Part's mark*        1
  Answer type          Number
  Answer*              3
  Grading criteria*    Absolute error == 0
  Placeholder name
  Part's text          One subquestion on the subtraction:
                      What is 9 − 6?
</pre>
 
 
 
[[#top|Accéder au haut de la page]]
 
[[Question de type Formules|← QUESTION DE TYPE FORMULES]]
 
===Autres langues===
[https://docs.moodle.org/33/en/Formulas:_Parts'_placeholders English]<br>
[https://docs.moodle.org/all/es/F%C3%B3rmulas:_Sustitutos_para_partes Español]

Dernière version du 17 mai 2019 à 14:58

Rediriger vers :