Tipo de Pregunta Calculada

De MoodleDocs

Nota: Pendiente de ACTUALIZAR esta traducción respecto a la página original en inglés (ver enlace hacia English en el cuadro abajo a la derecha).     (otras páginas pendientes)

Nota del traductor: La palabra inglesa quiz se tradujo al Español internacional como Cuestionario y al Español de México como Examen.

Las preguntas calculadas ofrecen una forma de crear preguntas numéricas individuales mediante el uso de comodines o wilcards (por ejemplo {x}, {y} ) que son substituidos por valores aleatorios cuando se accede a dicha pregunta.

Por ejemplo, si usted quiere crear varias preguntas del tipo "Calcula el área de un rectángulo..." para ejercitar a sus alumnos, puede crear una sola pregunta general y reemplazar los valores de la base y altura por los comodines {base} y {altura} y poner su producto en el cuadro de texto "Fórmula para calcular la respuesta correcta=" para que Moodle calcule la respuesta correcta:

Fórmula para calcular la respuesta correcta = {base}*{altura}


Cuando el estudiante haga el cuestionario (examen), Moodle seleccionará automáticamente valores aleatorios para {base} y {altura} y calificará la respuesta usando el resultado de la fórmula ingresada en el cuadro de texto anterior.

Los comodines rara vez aparecerán dos veces de la misma manera, por lo que el estudiante no podrá aprenderse las respuestas, sino que tendrá que aprender el procedimiento.

¿Es realmente este tipo de pregunta lo que Ud. necesita?

El principal objetivo de las preguntas calculadas es generar múltiples versiones de una pregunta con valores numéricos diferentes. Esto significa declarar por lo menos un comodín en una de las respuestas.

Si no necesita un elemento aleatorio, use el Tipo de Pregunta Numérica en vez.

Tipo de pregunta calculada simple

La pregunta Simple calculada ofrece las características más frecuentemente usadas de la pregunta calculada, pero con una interfase para su creación mucho más simple.

Comodines y conjuntos de datos (dataset)

Cuando Moodle entrega una pregunta Calculada a un estudiante, los comodines son remplazados por valores elegidos aleatoriamente. Sin embargo, estos valores no son completamente aleatorios, sino que pueden ser elegidos aleatoriamente desde un conjunto predefinido de posibles valores denominado dataset. Esto le permite a Usted algún control sobre los posibles valores escogidos para hacer, por ejemplo, los números más realistas.

Estos datasets pueden ser privados o compartidos - los datasets privados son usados por un comodín dentro de una sola pregunta calculada; los datasets compartidos son usados por un comodín dentro de todas las preguntas calculadas que lo usan.

Configuración de la pregunta

Para crear (o modificar) una pregunta calculada hay que rellenar la información de tres páginas. Las siguientes instrucciones indican el procedimiento paso a paso:

Página 1: Editando una pregunta calculada

  1. Seleccione la categoría a la que pertenecerá la pregunta.
  2. Según la categoría seleccionada, aparecerá un listado de Comodines compartidos que pueden ser utilizados para generar nuevas preguntas. Si usted cambia la categoría, deberá hacer click en el botón "Actualizar la categoría" para refrescar esta lista. Puede no haber comodines compartidos aún - si es así, usted puede crearlos más adelante si desea.
  3. Defina el nombre de la pregunta. Este debe ser un nombre descriptivo que le permita posteriormente identificar a la pregunta dentro del banco de preguntas.
  4. Ingrese el Texto de la pregunta. Este corresponde al enunciado de la pregunta que los estudiantes responderán. Debe incluir toda la información necesaria para calcular la respuesta y debe contener, por lo menos, un comodín encerrado en llaves curvas. Por ejemplo, si usted quiere que sus estudiantes sumen los números A y B, el texto de la pregunta podría ser: "¿Cuánto es {A} + {B}?". Dentro del texto de la pregunta usted puede agregar una imagen usando el botón Insertar/Editar Imagen del editor HTML.
  5. Defina la Puntuación por defecto (i.e. el número máximo de puntos para esta pregunta).
  6. Set the Penalty factor (ver Factor de penalización más abajo).
  7. Moodle 1.7+: If you wish, add general feedback. This is text that appears to the student after he/she has answered the question.
  8. Next add the formula for the answer. This formula must contain at least the wildcards that appear in the question text. See Sintaxis de la fórmula de la respuesta correcta for further details.
  9. Choose the grade that the student will get for this question if they give this answer. This should be a percentage of the total marks available. For example, you could give 100% for a correct answer, and 50% for an answer that is nearly right. One of the answers must have a 100% grade.
  10. Determine the tolerance for error that you will accept in the answer. The tolerance and tolerance type settings combine to give a range of acceptable scores. So, if tolerance = t, correct answer = x and the difference between the user's answer and the correct answer is dx, then the tolerance types are as follows:
    1. Nominal - mark correct if dx <= t
    2. Relative - mark correct if dx / x <= t
    3. Geometric - mark correct if dx² / x² <= t²
  11. The next 2 settings, "Correct answer shows" and "Format" determine the precision of the answer. Use these to select the number of decimal places or significant figures you want to use.
  12. Add some feedback which the student will see if they enter this answer.
  13. You can specify as many answer formulae as you like - click "Add another answer blank" to add more.
  14. You can also specify units for the answers. For example, if you enter a unit of 'cm' here, and the accepted answer is 15, then the answers '15cm' and '15' are both accepted as correct. If you add more than one unit, you can also specify a multiplier. So, if your main answer was 5500 with unit W, you can also add the unit kW with a multiplier of 0.001. This means that the answers '5500', '5500W' or '5.5kW' would all be marked correct. Note that the accepted error is also multiplied, so an allowed error of 100W would become an error of 0.1kW.
  15. Finally (!) you can click "Next page" to save what you've done and move on. If you are editing an existing question, you can click "Next page (new question)" to create a completely new question based on an existing one.

Factor de penalización

Puede especificar qué fracción de la puntuación obtenida debería substraerse por cada respuesta errónea. Esto sólo resulta relevante si el cuestionario de ejecuta en modo adaptativo, de forma que se permite al estudiante repetir las respuestas a la pregunta. El factor de penalización debería ser un número entre 0 y 1. Un factor de penalización de 1 significa que el estudiante ha de dar la respuesta correcta al primer intento para conseguir la calificación máxima. Un factor de penalización de 0 significa que el estudiante puede intentar responder cuantas veces quiera y aun así puede conseguir la calificación máxima.

El 'Factor de penalización' sólo se aplica cuando la pegunta se utiliza dentro de un cuestionario en modo adaptativo -dónde el estudiante tiene permitido hacer múltiples intentos-. Si el factor de penalización es mayor que 0, entonces el estudiante perderá la proporción de la máxima puntuación a cada intento sucesivo. Por ejemplo, si la puntuación de la pregunta es por defecto 10, y el factor de penalización es 0.2, entonces cada intento sucesivo tras el primero tendrá una penalización de 0.2 x 10 = 2 puntos.

Tolerancia

Para las preguntas numéricas es posible permitirles un margen dentro del cual todas las respuestas sean aceptadas como correctas. El campo de "Tolerancia" se usa para ésto. Sin embargo, hay tres tipos diferentes de tolerancia, que son Relativa, Nominal y Geométrica. Si nosotros decimos que la respuesta correcta al momento del examen (cuestionario) está calculada a 200 y la tolerancia se configura a 0.5 entonces los diferentes tipos de tolerancia funcionarán de la siguiente forma:

Relativa: Se calcula un intervalo de tolerancia al multiplicar la respuesta correcta por 0.5; en este caso nos daría 100, por lo que para ésta tolerancia la respuesta correcta debe estar entre 100 y 300 (200 ± 100). Ésto es útil si la magnitud de la respuesta correcta puede diferir grandemente entre diferentes valores de comodines.

Nominal: {Este es el tipo más simple de tolerancia, pero no es muy poderoso. La respuesta correcta debe estar entre 199.5 y 200.5 (200 ± 0.5). Éste tipo de tolerancia puede ser útil si las diferencias entre diferentes respuestas correctas fuese pequeña.

Geométrica: El límite superior del intervalo de tolerancia se calcula como 200 + 0.5*200 y es el mismo que para el caso relativo. El límite inferior se calcula como 200/(1 + 0.5). La respuesta correcta entonces deberá estar entre133.33 y 300. Ésto es útil para cálculos complejos que deben tener una gran tolerancia en donde tolerancias relativas de 1 o más serían utilizadas para el límite superior, pero que claramente no serían aceptables para el límite inferior ya que harían que el cero fuese una respuesta correcta para todos los casos.

El campo de dígitos significativos sólamente se relaciona con el cómo se debería presentar la respuesta correcta en la revisión o los reportes. Por ejemplo, Si el campo de dígitos significativos se configura a 3, entonces una respuesta correcta de 13.333 sería presentada como 13.3 y si la respuesta correcta fuese 1236 entonces sería presentada como 1240 y una respuesta correcta de 23 sería presentada como 23.0 y así suscesivamente.

Página 2. Elija las propiedades del conjunto de datos (dataset)

Each wildcard that you specify in the answer formula must have an associated set of possible values - this is its dataset. Each of the wildcards is listed on this page along with a choice of dataset:

  • private i.e. only used by this question
  • shared i.e shared with other calculated questions in the same category

Using a shared dataset can save time when you are creating a lot of similar calculated questions.

Note that even when creating a question for the first time, this page may say that your wildcard "will use the same existing private dataset as before." This just means that Moodle has already tentatively created a private data set for that wildcard: if a private dataset is what you want, leave this choice selected.

If there is anything in the question text that looks like a wildcard, but does not appear in any of the answer formulae, you can specify whether or not this is meant to be a wildcard. If it is, you can choose whether it should use a private or shared dataset.

To continue, simply choose your preferred dataset for each wildcard, then click "Next Page".

Página 3. Edite los conjuntos de datos (datasets)

Now we need to create the set of possible values that each wildcard can take. Warning - this page is a bit confusing!

There are two ways of creating values - you can type them in yourself and add them to the list, or you can have Moodle generate them for you.

Añadiendo/eliminando sus propios valores

Adding individual values to the list is easy:

  1. In the 'Param' field for each wildcard, enter the value you want
  2. Scroll down to the 'Add' section and click the Add button (leaving the number of items set to 1)
  3. Repeat the above steps as many times as necessary (the maximum number of items is 100)

To delete values from the list:

  1. In the 'Delete' section, select the number of items to delete
  2. Click the Delete button

Permitirle a Moodle crear los valores

  1. Start with the "Range of Values" fields, and enter the lower and upper limits for the values you would accept
  2. Choose a number of decimal places for the value
  3. Choose the distribution of values between the limits - 'uniform' means any value between the limits is equally likely to be generated; 'loguniform' means that values towards the lower limit are more likely.
  4. Now move down to the 'Add' section and click on "force regeneration"
  5. In the menu next to the Add button, choose the number of sets of random values (items) you wish to add to the list. (Note that the maximum total number of items in your list is 100.)
  6. Finally, click Add to append the new values to the list
  7. Note: If you want more control over the items that Moodle adds, you can do them one at a time and preview the values before you add them. Click the "Get New Item to Add" button to make Moodle generate new values in the "Item to Add" section at the top. If you like them, click "Add" for 1 item; if not, click "Get New Item to Add" again to get new values.

Terminando

Once your list of items (values) is complete, you are finished. It's up to you how many values you add - the more values you add, the more a question can be used by the students without them seeing the same values repeatedly.

Note that if you delete values from the list, you can put them back again. Change the "Next Item to Add" option to "reuse previous value if available", then the next time you add items, Moodle will restore your previously-deleted items from the dataset.

Once your list of values is complete, you can click 'Save changes' to finish.

¿Qué hace el botón de 'Actualice los parámetros del conjunto de datos (dataset)?

Warning: This button can affect several questions, so be careful before using it. Assume you have selected dataset parameter for {a} to be any value between 1-10 and generated a question. In the second question also you decide to use a SHARED wildcard called {a}. Inherently, it will show a value between 1-10. However, your need here changes and you want to make it 11-100 instead. Then, you change them in the range and click this button. Voila! the values change and you can add new items here using the 'Get New item to add'. However, if you go back to your previous question, you will see that values would change there too, because it is a shared dataset. If you do not update parameters, then this may not happen and will generate a new set of values and displays them in the "Item to Add" section.

Sintaxis correcta para la fórmula de la respuesta correcta

NO PONGA EL SIGNO DE = EN LA FÓRMULA.

  • In the recent versions of the calculated question type, you could have more than one answer formula and applied a specific grading value to each of them as long as there is at least one 100% correct answer formula.
If more than one correct answer formula input field are displayed when editing, 
your site has the multiple answer feature. 


  • As a general rule, write these formulas like you would in a calculator e.g. 3 + 5 * sin(3/{x}) A notable exception is exponentiation, where x3 cannot be entered as {x}^3, but instead should be entered as pow({x}, 3).
  • Each function's placeholders and other arguments should be in parentheses (brackets). For example, if you want students to calculate the sine of one angle and two times cosine of another, you would enter sin({a}) + cos({b}*2).
  • It's usually better to have too many parentheses (brackets) than too few. The server won't care, and the more specific you are about what you mean, the more likely it will like your complex formulas.
  • There is no implicit multiplication. To you, the human editor, "5(23)" or "5x" may seem perfectly obvious. To the server doing the math, it's crazy talk and won't be understood. Always use the "*" for multiplication.
  • Any special mathematical function must have parentheses around its values. Take the sine function in the first bullet point for instance. Notice that the 3 / x is wrapped in parentheses (brackets)--this is so the server can understand it properly. Without those parentheses, the server won't know if you mean "(sin 3) / x" or "sin (3 / x)" and will reject the entire formula accordingly.

Funciones disponibles

Las preguntas calculadas pueden usar mucho más que operadores aritméticos simples. Las siguientes funciones están permitidas en versiones de Moodle 1.5 y superiores:

Función Explicación
abs Absolute value
acos Arc cosine -- output in radians.
acosh Inverse hyperbolic cosine -- output in radians.
asin Arc sine -- output in radians.
asinh Inverse hyperbolic sine.-- output in radians.
atan2 Arc tangent of two variables -- pass in two values like (y, x), and you'll get the atah(y/x), adjusted to the proper quadrant. (Note: The variables are in the reverse order to atan2(x,y) in Excel) Output is radians.
atan Arc tangent -- output in radians.
atanh Inverse hyperbolic tangent-- output in radians.
bindec Binary to decimal
ceil Round fractions up
cos Cosine -- in radians!!! Convert your degree measurement to radians before you take the cos of it.
cosh Hyperbolic cosine -- in radians!!! Convert your degree measurement to radians before you take the cosh of it.
decbin Decimal to binary
decoct Decimal to octal
deg2rad Converts the number in degrees to the radian equivalent
exp Calculates the exponent of e
expm1 Returns exp(number) - 1, computed in a way that is accurate even when the value of number is close to zero
floor Round fractions down
fmod Returns the floating-point modulus of two numbers - i.e. the remainder when the first is divided by the second.
is_finite Finds whether a value is a legal finite number
is_infinite Finds whether a value is infinite
is_nan Finds whether a value is not a number
log10 Base-10 logarithm
log1p Returns log(1 + number), computed in a way that is accurate even when the value of number is close to zero
log Natural logarithm (ln)
max Find highest value
min Find lowest value
octdec Octal to decimal
pi() Get value of pi - the function does not take an argument, like in Excel.
pow (numberToRaise, NumberRaisedTo) Exponential expression
rad2deg Converts the radian number to the equivalent number in degrees
rand Generate a random integer
round Rounds a float
sin Sine -- in radians!!! Convert your degree measurement to radians before you take the sin of it.
sinh Hyperbolic sine -- in radians!!! Convert your degree measurement to radians before you take the sinh of it.
sqrt Square root
tan Tangent -- in radians!!! Convert your degree measurement to radians before you take the tan of it.
tanh Hyperbolic tangent -- in radians!!! Convert your degree measurement to radians before you take the tanh of it.

Constantes predefinidas

Realmente no hay constantes predefinidas permitidas exceptuando a pi() que es una función sin parámetros.


Sincronización

Usted podría usar comodines compartidos para obtener los mismos valores para todas las preguntas en un examen (cuestionario).

Un ejemplo sencillo sería usar el mismo radio en una primera pregunta que pidiera el perímetro de un círculo de {radio}cm y una segunda pregunta que pidiera la superficie un círculo de {radio}cm.

Cuando el examen (cuestionario) se mostrara al estudiante, las dos preguntas mostrarían el mismo valor para el {radio}.

Sin embargo, la sincronización SÓLAMENTE funcionará si las preguntas se guardan en la MISMA categoría y tienen el MISMO NÚMERO DE CONJUNTOS DE DATOS (DATASETS).

Si Usted necesita mover las preguntas sincronizadas hacia otra categoría, necesita hacerlo mediante la edición de las preguntas.

Vea también