Open PhilippImhof opened 2 weeks ago
I do not yet fully understand the idea:
The first part is fully correct, but I want to know whether the student answered the additional question in the second part correctly (depending on their choice). As a result, I evaluate them either on the first part or the second part, ensuring that the maximum grade doesn’t exceed that of the first part.
If the student gives a correct answer to part 1, they will also see part 2 and if they answer it, they will not get more points than they can get with part 1 alone?
Or do you mean you have two parts, one more difficult than the other, and the student can answer either of them?
I do not yet fully understand the idea:
The first part is fully correct, but I want to know whether the student answered the additional question in the second part correctly (depending on their choice). As a result, I evaluate them either on the first part or the second part, ensuring that the maximum grade doesn’t exceed that of the first part.
If the student gives a correct answer to part 1, they will also see part 2 and if they answer it, they will not get more points than they can get with part 1 alone?
Or do you mean you have two parts, one more difficult than the other, and the student can answer either of them?
My idea includes the following points:
_Originally posted by @alexanderlata in https://github.com/FormulasQuestion/moodle-qtype_formulas/issues/154#issuecomment-2396956750_
For example, I ask students to solve a system of linear equations using the Gauss method. I create two parts and, with the help of JavaScript and HTML, I add a dropdown menu using the
select
andoption
tags.Depending on the choice made in the dropdown menu, I show one part and hide the other. In the first part, I ask for an answer, and in the second part, I ask another question.
The first part is fully correct, but I want to know whether the student answered the additional question in the second part correctly (depending on their choice). As a result, I evaluate them either on the first part or the second part, ensuring that the maximum grade doesn’t exceed that of the first part.
This behavior could also be useful for other types of questions, like proofs. In the second part, I could ask to calculate an example, while in the first part, the student would fill in the gaps of the proof.
Here is my example. I have not corrected the grading logic. Please disregard it.
Moodle XML export
``` xmlSolve a system of linear equations using the Gaussian method
\[ \begin{cases} {M11} x_1 {=d[nM12]} {M12} x_2 {=d[nM13]} {M13} x_3 {=d[nM14]} {M14} x_4 {=d[nM15]} {M15} x_5 ={M16} \\ {M21} x_1 {=d[nM22]}{M22} x_2 {=d[nM23]}{M23} x_3 {=d[nM24]}{M24} x_4 {=d[nM25]}{M25} x_5={M26} \\ {M31} x_1 {=d[nM32]} {M32} x_2 {=d[nM33]} {M33} x_3 {=d[nM34]} {M34} x_4 {=d[nM35]} {M35} x_5 ={M36} \end{cases} \]
This system of equations is]]>
\[\text{rank}(\mathbf{A})\\] = {_0}
\[\text{rank}(\mathbf{\widetilde{A}})\\] = {_1}
]]>\[x_1\] = {_0}
\[x_2\] = {_1}
\[x_3\] = {_2}
\[x_4\] = {_3}
\[x_5\] = {_4}
]]>
Assign values to the free variables {y}, {u}, and {v}, in their respective orders, and find a specific solution.
Enter the solutions in the appropriate fields below
\[x_1\] = {_0}\[x_2\] = {_1}
\[x_3\] = {_2}
\[x_4\] = {_3}
\[x_5\] = {_4}
]]>