Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Calculated question 1.7 bug solving proposal: Difference between revisions

From MoodleDocs
Line 14: Line 14:
Actually ( up to 1.7 HEAD moving questions to another category is done in showbank.php by
Actually ( up to 1.7 HEAD moving questions to another category is done in showbank.php by
==Creating a cloze version of calculated question==
==Creating a cloze version of calculated question==
The actual prototype allows to edit up to 5 subquestions as illustrated by this figure[[Image:http://www.chimie.uqam.ca/images/first.jpg]]
The actual prototype allows to edit up to 5 subquestions as illustrated by this figure[[Image:Calculated Cloze Protoype 1]]


==Creating a  subquestions interface in the actual cloze question following the work on  calculated question cloze version==
==Creating a  subquestions interface in the actual cloze question following the work on  calculated question cloze version==

Revision as of 04:12, 9 October 2006

This page will describe the various improvements and bugs solving that are being planned for 1.7 release. I almost suceed in developping a "cloze" version of the calculated question with a lot of interesting features. However the actual calculated qusetion needs more basic improvements or bug solving. I will list here the order in which I propose to solve them. I have already a working solution for most of the following items although each of them need to be tested before porting in the Moodle code.

Management of datasets shareable over a category

  1. Bad choice of data item number when generating a question [https://tracker.moodle.org/browse/MDL-6777 MDL-6777]

The calculated question allow to define datasets variable (i.e. {a}) that could be common to questions from the same category. This NEVER work correctly because you can define a common variable say {b} in question 1 , create say 6 data items. Create a question 2 that will use the same common {b} in another equation (ex. {cb}+{c}. You then create a number of datasets for example 2 dataitems so question 2 will have 2 new {c} data items and will use 2 {b} common dataitems When you will attempt question 2, the actual code will choose the data item number between 6 and 1 so most often the question will retrun with an error. There is a solution and with some simple testing it could be coded in 1.7, 1.6 and even 1.5 (with change in the table names (i.e. question_datasets to quiz_question_datasets ).

Coding a more general solution to moving questions ot another category.

Actually ( up to 1.7 HEAD moving questions to another category is done in showbank.php by

Creating a cloze version of calculated question

The actual prototype allows to edit up to 5 subquestions as illustrated by this figureFile:Calculated Cloze Protoype 1

Creating a subquestions interface in the actual cloze question following the work on calculated question cloze version