Example "Consider result value signs”

Last modified by Hendrik Zschocke on 12.01.2024

As an example, the assessment and individual feedback for a numerical result value should be based on the following criteria:

Incorrect solution:

  • no points
  • feedback: "Your solution is incorrect."

Incorrect sign, but correct result value:

  • 0.5 points
  • feedback: "The value of your solution is correct, but the sign is incorrect."

Correct sign, correct result value:

  • 1 point
  • feedback: "Your solution is correct."

Correct sign, incorrect result value:

  • 0.5 points
  • feedback: "The value of your solution is incorrect, but the sign is correct."

 

Beispiel - Vorzeichen_de.png

Implementation can be done using variable conditions and individual feedback information.

 

Explanation of the example’s function

Configurations in the Variables area:

The following variables are required for implementation:

  • Variables in which the absolute value of the learner response (solution_abs) and of the correct answer (solutioncor_abs) is calculated using a Maxima function.
  • Flag variables for comparing the values (merker_abs) and their signs (merker_vorzeichen). These variables are basically used as control variables. They can either have the value 0 or 1 to signify whether a particular event is true or false.

Before the question is displayed, the required inspection variables will have no value.

Beispiel - Vorzeichen Pre Variablen_de.png

When the question has been answered, the value of the learner response and the correct solution will be calculated in the variables solution_abs and solutioncor_abs, and the assessment will be carried out via conditions:

  • In the first condition, the value of the learner response will be inspected.
  • In another condition, the used sign will be inspected. The results of these two inspections will then be placed into the variables merker_abs and merker_vorzeichen.
  • If one of the two inspections is negative, the achieved score will be reduced to 0.5 points in a third condition. This will then be transferred to the achievable question score.

Beispiel - Vorzeichen Post Variablen und Bedingungen_de.png

 

Configuration in the Feedback area:

Individual feedback conditions can be stored for all possible results. These will be displayed according to the variable inspections after the question has been assessed.

Beispiel - Vorzeichen Feedback_de.png

Using the pre-configured example question

1

Import the example question: Example_Consider_Signs.zip

For instructions on how to import a question, see the help page Create content.

Beispiel - Vorzeichen importieren_de.png

2

Change the title of the question and delete the entire italic information text. Then enter your own question text.

Beispiel - Vorzeichen Aufgabentext anpassen_de.png

3

Adjust the expected correct value for the numerical gap.

Beispiel - Vorzeichen Lösung anpassen_de.png

4

Check the feedback texts and edit them if necessary.

Beispiel - Vorzeichen Feedback_de.png

5

Save the changes to your question.

For instructions on how to use this question in a test, refer to the help page Add or create questions.