Hi there, My question is similar to a question raised by Markus on 28 June and partially answered by Tim and Rick (good demo video Rick).
Objective: I want to have student to enter a lab measurement (a resistor value) as a number. After checking the value is correct and within a tolerance (this is easy); I then want to use THAT number to calculate the answer for the following question(s).
Looking at the shared datasets example; what it looks like I want to do is to effectively use the student entry to 'create' a wildcard set of only one value (or a set of values). By then synchronising across a number of following questions (as per Rick's video) I would have subsequent questions calculated on the values. Example below:-
Question 1: (Numerical) measure R1 and enter the value [answer = 27.3 +/- 0.1]
Question 2: (Numerical) Measure R2 and enter the value [answer = 60.2 +/- 0.1]
Question 3: (Numerical Calculate gain of amplifier using R1 and R2 values from above [answer = {(({R1}+{R2})/{R2})} +/- 0.2]
I do not want to use the 'RAND' function for R1 and R2 to generate the wild cards; I want to use the values provided from the student (or could be part of their student number) ; I want to 'force' the question to use the numbers provided and then calculate the correct answer based on these.
How can I achieve this?
I guess my underlying question is how does Moodle quiz treat answer variables in questions? If I can store the entry from the previous question(s) (if necessary hacking HTML) then I 'should' be able to call that later to calculate the dependent answers for later questions?