Programmed responses question type: Różnice pomiędzy wersjami

Z MoodleDocs
Skocz do:nawigacja, szukaj
(added page)
 
 
(Nie pokazano 3 pośrednich wersji utworzonych przez tego samego użytkownika)
Linia 1: Linia 1:
{{Questions}}
{{Questions}}
Tre programmed response question type gets the question answer through a set of editable and non-native PHP functions. Useful for maths or statistics exercices which requires complex operations to get the answer.
The programmed response question type gets the question answer through a set of editable and non-native PHP functions. Useful for maths or statistics exercices which requires complex operations to get the answer.


==Features==
==Features==
Linia 9: Linia 9:


* User interface to allow the addition of functions. These functions can return one or more values, useful for example to return confidence intervals.
* User interface to allow the addition of functions. These functions can return one or more values, useful for example to return confidence intervals.
==Requirements==
* Moodle 1.9.x
* Users with Javascript/AJAX support enabled


==Download==
==Download==
Linia 27: Linia 31:
==Adding functions==
==Adding functions==
There is an interface to allow the addition of functions; preceding the php implementation of each function there should be a comment block following phpdoc format, to specify the arguments description and the returned values.
There is an interface to allow the addition of functions; preceding the php implementation of each function there should be a comment block following phpdoc format, to specify the arguments description and the returned values.
==Credits==
Tool designed by Josep Maria Mateo, Carme Olivé and Dolors Puigjaner, members of DEQ
and DEIM departments of the Universitat Rovira i Virgili.
Consultoria Mosaic


==See also==
==See also==
* [https://github.com/dmonllao/moodle-qtype_programmedresp/blob/master/README More documentation on this plugin]
* [https://github.com/dmonllao/moodle-qtype_programmedresp/blob/master/README More documentation on this plugin]
* [https://github.com/dmonllao/moodle-qtype_programmedresp Source control URL]
* [https://github.com/dmonllao/moodle-qtype_programmedresp Source control URL]
* [http://moodle.org/mod/forum/discuss.php?d=194162 Plugin forum]


[[Category:Contributed code]]
[[Category:Contributed code]]
[[Category:Questions]]
[[Category:Questions]]
[[Category:Mathematics]]
[[Category:Programming]]

Aktualna wersja na dzień 15:47, 20 kwi 2014


The programmed response question type gets the question answer through a set of editable and non-native PHP functions. Useful for maths or statistics exercices which requires complex operations to get the answer.

Features

  • Users can add variables to the question text, the variables takes random values depending on

the user selection: max value, min value, increment and the number of values (scalar/vectorial - float/array)

  • The function arguments can be one of the question text defined variables, a concatenation of defined variables or fixed values.
  • User interface to allow the addition of functions. These functions can return one or more values, useful for example to return confidence intervals.

Requirements

  • Moodle 1.9.x
  • Users with Javascript/AJAX support enabled

Download

From the Moodle Plugins database.

Usage

  1. 1st step (optional): Variables can be added to the question text following the next format: {$varname}

The variables only accepts alphanumeric characters.

  1. 2nd step (optional, depends on the first step): Each variable must define the maximum and minimum values it can take, the increment and the number of values, to allow vectorial variables.
  1. 3rd step (optional): Add concat variables, useful if there should be a vectorial variable which values follows different criteria
  1. 4th step: Select the function which will calculate the answer (read ADDING FUNCTIONS to know how to add functions)
  1. 5th step: Assign each of the function arguments to a variable or a concat variable, the function can also use a fixed value as argument

Adding functions

There is an interface to allow the addition of functions; preceding the php implementation of each function there should be a comment block following phpdoc format, to specify the arguments description and the returned values.

Credits

Tool designed by Josep Maria Mateo, Carme Olivé and Dolors Puigjaner, members of DEQ and DEIM departments of the Universitat Rovira i Virgili. Consultoria Mosaic

See also