
Type: Bug

Status: Open

Priority: Minor

Resolution: Unresolved

Affects Version/s: 2.5.3

Fix Version/s: STABLE backlog

Labels:

Workaround:

Affected Branches:MOODLE_25_STABLE
I have noticed several simplified calculated problem issues today.
1)If you copy a simplifed calculated question and change the parameters, say from
2)Parameters can be sticky. In other words, if they are put in place, they may be difficult to remove. If you remove all the parameters from the correct answer for an example, then finding wildcards should flush the system and delete the cached state of parameters. If no parameters are in the correct answer, it does not delete the cache.
Pardon me if I am not using correct terminology. This behavior is for questions that have not yet been put into a quiz but before being copied, they may have been previewed.
To create the issue, create a simplifed question. The question below tests to find the horizontal component of a force in the 2nd quadrant. There are two forces(a and b) located by a string of angles c,d,and e.
Question text: Given the pictured forces below with A={a} pounds, B={b} pounds, angle c={c}
degrees, angle d=
{d} degrees, find Bx, the horizontal component of B. Units are optional.Answer1(100%): {b}*cos(({c}+{d}
)pi()/180)
{a}/{a}Feedback1:Correct
Answer2(none):
Feedback2: You solved for the vertical, not the horizontal component.
Answer3(none):{b}
*cos((
{d})*pi()/180)*{a}/{a}Feedback3:It's not just angle d that must be used.
Answer4(none):{b}*cos(({c}+{d}
)pi()/180)
{a}/{a}Feedback4:Your answer is positive. It should be negative.
Generate 20 results with 5<a<500, 5<b<500, 5<c<45, 5<d<45
Save the question. Preview and test the question.
Edit and copy the question. Change the new question name and change the question parameters as follows. The new question tests how a student interprets a change in angles from summing from xaxis to summing from yaxis. Parameter is presented but not needed.
Question text: Given the pictured forces below with A=
{a} pounds, B={b} pounds, angle e={e} degrees, angle d={d} degrees, find Bx, the horizontal component of B. Units are optional.Answer1(100%): {b}*sin(({e}+{d})pi()/180){a}
/
{a}Feedback1:Correct
Answer2(none): {b}*cos(({e}+{d})pi()/180){a}
/
{a}Feedback2: You solved for the vertical, not the horizontal component.
Answer3(none):{b}*sin(({d})pi()/180){a}
/
{a}Feedback3:It's not just angle d that must be used.
Answer4(none):{b}*sin(({e}+{d})pi()/180){a}
/
{a}Feedback4:Your answer is positive. It should be negative.
Generate 20 results with 5<a<500, 5<b<500, 5<e<45, 5<d<45
At my computer the generated results indicate that e has an allowable range of 5 to 500 rather than 5 to 45, thus ignoring the specified parameter limits.
What I expected was that the parameters would stay within there limits and that updating the parameters would regenerate the results within those limits.
Sorry for wordiness but detailed description was asked for.