Trouble with Synchronization of Calculated Questions

Trouble with Synchronization of Calculated Questions

by Brian Mayer -
Number of replies: 4

According to a number of posts, I should be able (in Moodle 2.0.3) to create two questions that use the same dataset and then use the same values in the next question.

For example, "You have a square with a length of {l} and a width of {w}.  What's the area?"  I should be able to follow that up by asking for the perimeter using the same values.  http://docs.moodle.org/en/Calculated_question_type#Synchronization

I am having a terrible time actually setting this up to work, though.  I think I followed the directions in that the questions are in the same category and have the same number of datasets, but when I make a quiz with those two questions, I get different values for {l} and {w}.

It shows me that it recognizes the other dataset:

"Shared wild card w
with 10 numerical values already defined is available"
Can someone clearly quide me as to how to create these questions and quizzes so that I can give a quiz where I can use the same values to ask different questions, like at the bottom of this thread (http://moodle.org/mod/forum/discuss.php?d=97950 - where they are looking to calculate the x- and y- velocity of a projectile)?
Thanks!
Average of ratings: -
In reply to Brian Mayer

Re: Trouble with Synchronization of Calculated Questions

by Pierre Pichet -

I just test it on moodle demo site 2.0.2 with similar  settings and it works correctly.

I had to install a new 2.0.3 to see if something is not working correctly.

 

Pierre

P.S. later today, it's 2 AM at Montréal...

In reply to Brian Mayer

Re: Trouble with Synchronization of Calculated Questions

by Pierre Pichet -

One easy way to create synchronized questions is

  1. Create a first question like You have a square with a length of {l} and a width of {w}.  What's the area?
  2. put the formula in the answer i.e. {l}*{w}
  3. define the grade , etc
  4. save the question  step 1
  5. define the datasets as shared datasets
  6. set the synchronize
  7. save the datasets definition step 2
  8. define the limits and create a set (i.e. 10 ) of datatitems
  9. save the dataitems step 3

Then use this first question to create a second using by

  1. editing the first question
  2. changing the question text and the answer formula i.e. perimeter 2*({l}+{w})
  3. then save as a new question
  4. the datasetdefinitions are already defined as shared so just save step 2.
  5. the dataitems are already defined so just save step 3

and you second question is ready...

Pierre

In reply to Pierre Pichet

Re: Trouble with Synchronization of Calculated Questions

by Brian Mayer -

Great! Thanks, Pierre!

Perhaps that should have been obvious, but it wasn't in the documentation that way.

In reply to Brian Mayer

Re: Trouble with Synchronization of Calculated Questions

by Pierre Pichet -

So I will include this example in docs.

Pierre