Note: You are currently viewing documentation for Moodle 2.9. Up-to-date documentation for the latest stable version of Moodle may be available here: Calculated multichoice question type.

Difference between revisions of "Calculated multichoice question type"

From MoodleDocs
m (Added link to spanish translation of page)
(Made complete sentences, added question, used A & B as dataset variable to sub for l and h)
Line 1: Line 1:
 
{{Questions}}
 
{{Questions}}
Calculated multichoice questions are like multichoice questions with the additonal property that the elements to select can include formula results from numeric values that are selected randomly from a set when the quiz is taken.
+
Calculated multichoice questions are like multichoice questions with the additional property that the elements to select can include formula results from numeric values that are selected randomly from a set when the quiz is taken.
 
They use the same wildcards than Calculated questions and their wildcards can be shared with other Calculated multichoice or regular Calculated questions.
 
They use the same wildcards than Calculated questions and their wildcards can be shared with other Calculated multichoice or regular Calculated questions.
  
The main difference is that the formula is included in the answer choice as {=...} i.e if you calculate the surface of a rectangle {={l}*{w}}.
+
The main difference is that the formula is included in the answer choice as {=...}.
 +
 
 +
For example the teacher enters the question as: "Calculate the area of a rectangle where l = {A} cm  and h = {B}cm."
  
 
The value will be displayed as set by the '''Correct answer shows''' (0,1,2 etc) and '''Format''' (decimals, significant figures).
 
The value will be displayed as set by the '''Correct answer shows''' (0,1,2 etc) and '''Format''' (decimals, significant figures).
  
So a Choice text could be
+
The Choice text for the correct answer would be:
 
+
The rectangle's area is {={A}*{B}} cm2.
The rectangle surface is {={l}*{w}} cm<sup>2</sup>.
 
  
If {l} = 4,0 ,  {w} = 2,5 , '''Correct answer shows''' 1 and '''Format''' decimals
+
The correct answer's choice will display as:
 +
The rectangle area is 10.0 cm<sup>2</sup>
  
The choice will display as
+
When {A} = 4,0 ,  {B} = 2,5  and the '''Correct answer shows''' a score of at least 1 and the '''Format''' is in decimals.
  
The rectangle surface is 10.0 cm<sup>2</sup>
 
  
 
[[Calculated_question_type#Wildcards_and_datasets|Handling of the wild cards]], and the [[Calculated_question_type#Available_functions|available functions]] is similar to the calculated question type.
 
[[Calculated_question_type#Wildcards_and_datasets|Handling of the wild cards]], and the [[Calculated_question_type#Available_functions|available functions]] is similar to the calculated question type.

Revision as of 13:34, 12 November 2015


Calculated multichoice questions are like multichoice questions with the additional property that the elements to select can include formula results from numeric values that are selected randomly from a set when the quiz is taken. They use the same wildcards than Calculated questions and their wildcards can be shared with other Calculated multichoice or regular Calculated questions.

The main difference is that the formula is included in the answer choice as {=...}.

For example the teacher enters the question as: "Calculate the area of a rectangle where l = {A} cm and h = {B}cm."

The value will be displayed as set by the Correct answer shows (0,1,2 etc) and Format (decimals, significant figures).

The Choice text for the correct answer would be: The rectangle's area is {={A}*{B}} cm2.

The correct answer's choice will display as: The rectangle area is 10.0 cm2

When {A} = 4,0 , {B} = 2,5 and the Correct answer shows a score of at least 1 and the Format is in decimals.


Handling of the wild cards, and the available functions is similar to the calculated question type.