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

Calculated Objects question type: Difference between revisions

From MoodleDocs
(* But now I do not know how to upload the changed code into GitHub)
(** [https://docs.moodle.org/dev/Coding_style Moodle coding style] must be used)
Line 63: Line 63:
[[File:Pluginnamesummary_error_corrected.png]]
[[File:Pluginnamesummary_error_corrected.png]]


* When I installed the [https://moodle.org/plugins/pluginversions.php?plugin=local_codechecker additional code checker plugin] I could see many problems and locally fixed many of them
* When I installed the [https://moodle.org/plugins/pluginversions.php?plugin=local_codechecker additional code checker plugin] I could see many problems and locally fixed many of them.
* But now I do not know how to upload the changed code into GitHub :(
** [https://docs.moodle.org/dev/Coding_style Moodle coding style] must be used
** But now I do not know how to upload the changed code into GitHub :(





Revision as of 03:31, 6 August 2017

This a contributed Moodle question type which extends the Calculated question type.

Versions available

This plugin is available for Moodle 1.9 to 2.3

Wild cards

Teachers can create questions like,

  How much is {apples} + {oranges}?

- where the {wildcards} become M and N × images of apples and oranges respectively. It is aimed at pre/primary-school students (approximately age 3-10).

http://moodle.org/file.php/1/moddata/data/13/48/4143/mdl-q-calcobjects-5a-sub-green.png

Currently supported wildcards: apple, orange, pear, pineapple, walnut, cookie (each with or without an 's', eg. {cookies} and with an optional differentiator). For example,

  {apples_1} - {apples_2}

Tested with Moodle 1.9.7.

(Author N.D.Freear, 14 August 2010.)

Installation

  1. Download from the Moodle plugins database and unzip the archive. Copy the directory 'calculatedobjects' into the directory {MOODLE}/question/type/ on your server.
  2. Visit the administrator 'notifications' page, http://my.school/moodle/admin/ - there are no database changes for this question type.

Example use

Calculated objects question text.png

  • Write the answer formula

Calculated objects answer formula.png

  • Populate the sets for the objects with reasonable values (1 to 10 in this case)

Calculated objects apples set.png

Calculated objects oranges set.png

  • Save the question and test it

Calculated objects question at work.png

Change log

Acknowledgements

Thank you to:

ISSUES

  • missing 'pluginnamesummary' string . See GitHub solution
    • Pluginnamesummary error.png
    • Will use $string['pluginnamesummary'] = 'A version of calculated questions which extends the built-in 'calculated' question type. Teachers can create questions like, How much is {apples} + {oranges}.';
    • This fixes this error

Pluginnamesummary error corrected.png


See also