## Try

The Short answer type of question allows the student to insert the answer s/he wishes in a text field. We will see it, as usual, with an example.

We will ask the student to calculate the equation of the tangent line of a function in a point, so s/he will have to develop the corresponding calculations and insert the answer obtained.

To develop the wording, of random content as usual, we will use WIRIS functionalities, both to generate the f(x) function, as well as to determine the x-coordinate point and to obtain a graphic representation of the problem.

For this all, we write the wording as follows:

Soon we will see the maths required to generate this question, but we must bear in mind the key of the example, the settings of the question, as well as the Moodle fields that enable the mentioned settings.

The only essential field in the whole exercise is providing a correct answer. In our case, we must provide an answer with the best grade.

If we want to set a student feedback specific for some wrong answers, we can do it by using the additional answer sections. In this example, if the student inserts the same function provided, s/he does not obtain any grade, but a specific message.

One of the key points in this type of exercise is deciding which tools will be available for the student to respond. Usually, we will want him/her to have WIRIS formula editor, so we will verify that the corresponding option is selected in the WIRIS quizzes section, right before the Algorithm field. If we do not wish the student to insert any mathematic expression but only plain text, we can uncheck this box and the formula editor will not be available for the answer.

If we wish that, together with the formula editor, the student has a WIRIS cas session available, we just have to check the corresponding box. For more information, visit the WIRIS cas for the student session.

The exercise is almost set. Let us see which mathematic calculations are required for the current example:

• We define the f function as a random trigonometric function. Observe that f is defined as g(x), because we need a simple expression to request its representation in the wording and an expression in form of function of a variable to evaluate the function in one point.
• The point in the x-axis will be defined as a random point, chosen for the answer line to have simple coefficients.
• The answer line is built using the WIRIS cas command that generates a line, given a point and a slope.
• And, finally, we draw the f function, the q point and the r line, the last one on a separate line to determine that we want it in a different colour.