Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: Formulas question tutorial.

Formulas question tutorial: Difference between revisions

From MoodleDocs
(Replaced content with "{{Deletion}}")
Line 1: Line 1:
{{Formulas question type}}
{{Deletion}}
 
== Single question ==
Let's start by considering the simple case of a single question. We will see how the text of the question can be placed in the Main question, or in a Part if we treat the question as a subquestion. Better yet, we will show how to use a placeholder.
=== Question text in the Main question ===
The most basic form of a '''Formulas question''' is having the text of the question in the '''Question text''' field of the '''Main question''' section. To create such a simple '''Formulas question''', you must complete at least all the required fields, that is, the five below marked with ! and *:
 
<pre style="font-size:113%;">
General
  Question name!
Main question
  Question text!
Part 1
  Part's mark*
  Answer*
  Grading criteria*
</pre>
 
<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:113%;color:#6c336d;margin:10px 0 10px;> Example</div>
 
Create your first '''Formulas question''' as follows:
 
<pre style="font-size:113%;">
General
  Question name!      My first Formulas question
Main question
  Question text!      What is 3 + 4?
Part 1
  Part's mark*        1
  Answer*              7
  Grading criteria*    Absolute error == 0
</pre>
 
Congratulations, you just created your first '''Formulas question'''! The '''Editing a formulas question''' page should look like this:
 
[[File:FormulasTutorialQuestion01a.png|680px]]
 
and the Formulas question should look like this:
 
[[File:FormulasTutorialQuestion01b.png|680px]]
 
<div style="margin:20px 0 20px;">
[http://35.193.77.29/mod/quiz/view.php?id=132 <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>
 
=== Question text in a Part ===
For a single question, it makes almost no difference if the question text is put in the '''Main question''' or in a '''Part'''.
 
<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:113%;color:#6c336d;margin:10px 0 10px;> Example</div>
 
Modify the previous example and place the text of the question this time in the '''Part's text''' field of '''Part 1''':
 
<pre style="font-size:113%;">
General
  Question name!      Question text in Part 1
Main question
  Question text!      A question on addition
Part 1
  Part's mark*        1
  Answer*              7
  Grading criteria*    Absolute errror == 0
  Part's text          What is 3 + 4?
</pre>
 
The '''Formulas question''' should look like this:
 
[[File:FormulasTutorialQuestion01c.png|680px]]
 
Note that some text has to appear in the '''Question text''' field of the '''Main question''' because it is a required field.
 
<div style="margin:20px 0 20px;">
[http://35.193.77.29/mod/quiz/view.php?id=134 <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>
 
=== Using a placeholder===
Placeholders are used to insert the text of subquestions in the '''Main question'''. We will see later that they are very convenient.
 
<div style="background-color:#d3ffd3;
            border:1px solid #abdaac;
            border-radius:4px;
            color:#4f691a;
            padding:5px 15px 10px;
            margin: 0;
            ">
Note that each subquestion being assigned to a part, we will use interchangeably the terms subquestion and part.
</div>
 
<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:113%;color:#6c336d;margin:10px 0 10px;> Example</div>
 
Modify the previous example and use a placeholder to insert the text of the part in the main question:
 
<pre style="font-size:113%;">
General
  Question name!      Using a placeholder
Main question
  Question text!      A question on the addition
                      {#01}
Part 1
  Part's mark*        1
  Answer*              7
  Grading criteria*    Absolute error == 0
  Placeholder name    #01
  Part's text          What is 3 + 4?
</pre>
 
The '''Formulas question''' will look the same as in the previous example.
 
</div>
 
----
 
== Multiple questions, i.e. subquestions==
If there is more than one question in a formulas question, we will treat them as subquestions. It is then necessary to define the mark, answer and grading criteria in a part for each subquestion.
=== Without placeholders===
If you don't use subquestion placeholders, the answer boxes of the subquestions will simply be stacked one above the other.
<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:113%;color:#6c336d;margin:10px 0 10px;> Example</div>
 
Create a formulas question that has three sub-questions. Do not use placeholders.
 
<pre style="font-size:113%;">
General
  Question name!      A Formulas question with three subquestions
Main question
  Question text!      What is 3 + 4?
                      What is 4 + 5?
                      What is 5 + 5?
                      Enter your answers in the boxes below in the same order as the questions:
Part 1
  Part's mark*        1
  Answer*              7
  Grading criteria*    Absolute error == 0
Part 2
  Part's mark*        1
  Answer*              9
  Grading criteria*    Absolute error == 0
Part 3
  Part's mark*        1
  Answer*              10
  Grading criteria*    Absolute error == 0
</pre>
 
The formulas question should look like this:
 
[[File:FormulasTutorialQuestion02.png|680px]]
 
<div style="margin:20px 0 20px;">
[http://35.193.77.29/mod/quiz/view.php?id=139 <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>
 
Obviously, we can do better by placing the three questions each one in a part.
 
 
[https://docs.moodle.org/33/en/Formulas_question_type < Formulas question type]
 
[[es:Tutorial de pregunta Fórmulas]]

Revision as of 01:41, 31 December 2017

This page requires deletion. Please use the page comments if necessary to state the reason for deletion.