 Simplifed Calculated Parameter Issues

XMLWordPrintable

Details

• Type: Bug
• Status: Open
• Priority: Minor
• Resolution: Unresolved
• Affects Version/s: 2.5.3
• Fix Version/s:
• Component/s:
• Labels:
• Workaround:
Hide

The obvious work-around is to not copy the question. Instead create each question from scratch. More work, but more reliable.

Show
The obvious work-around is to not copy the question. Instead create each question from scratch. More work, but more reliable.
• Affected Branches:
MOODLE_25_STABLE

Description

I have noticed several simplified calculated problem issues today.
1)If you copy a simplifed calculated question and change the parameters, say from

{c} to {e}, then there can be some inconsistencies between the parameter generation values (the limits that the parameters are supposed to stay within) and the values actually generated and displayed in sets. These inconsistencies are sufficient to break the question and require hand editing of the parameters in the list of generated results.
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.

)pi()/180)

{a}/{a}

Feedback1:Correct

{b}*sin(({c}+{d})*pi()/180)*{a}/{a}
Feedback2: You solved for the vertical, not the horizontal component.

*cos((

{d})*pi()/180)*{a}/{a}
Feedback3:It's not just angle d that must be used.

)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 x-axis to summing from y-axis. 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.

/

{a}
Feedback1:Correct

/

{a}
Feedback2: You solved for the vertical, not the horizontal component.

/

{a}
Feedback3:It's not just angle d that must be used.

/

{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.

People

• Assignee: Unassigned
Reporter: Douglas Broad
Participants:
Component watchers:
Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze