# Question types

#### Wiris Quizzes 4 documentation

This documentation page has also been updated to the latest Wiris Quizzes version. You can find the same information for Wiris Quizzes 4 here.## Essay

Students answer this question type by writing a (usually long) answer inside a text editor. This includes the possibility to insert formulas using the MathType button. This question type does not have automatic grading. The teachers must review the answers and manually grade them – students will not have a complete quiz grade until then.

Use this type to make questions with random wordings, for example by defining random variables, and using them in the question text.

#### Studio tabs:

*Correct answer*: No correct answer is set. This tab only sets the option of including WIRIS CAS for the student or not.*Variables*: Define variables to be used in the question text and feedback.

## Short answer

Students answer this question type by writing a number or short formula, using MathType. This is the most complex question type to make because the student can write an answer in several different ways, and the system must decide if they are correct. That's why this question type has more tabs to configure it.

In particular, there is a tab called Validation, which handles the way in which Wiris Quizzes interprets formulas from the student.

Note that, after each answer, there is a summary of its validation settings. Only values different from defaults are shown.

### Compound answers

From the student's point of view, this type is just a special type of Short Answer question, but with multiple questions and answers combined into one.

In the menu of *Create a new question...* there is no *Compound answer* type. Choose *Short answer* question.

From the *Correct answer* tab, set the *Compound answer* checkbox.
Then you can list the sub-questions in the *Correct answer* field, using the form question = answer, one per line. The question is just a label, and can be any text. The *answer* can be any valid *Short answer* correct answer, including numbers, formulas, and `#variables`

.

You can set the grading of each sub-question. Choose if all sub-answers must be correct, or you want different weights for each sub-answer. There is no strict syntax for the weights; you can use points, percentages,... and separate them by commas, spaces,...

## Multiple choice

Students answer this question type just choosing one (or maybe many) options from a list.

Note Moodle now allows questions to have negative scoring, so now you can set grades in a way to discourage answering at random. But keep in mind some web browsers do not allow to deselect a choice once you have selected it.

As always, you can define variables and use them in the Question text and Feedback. In this question type, they can also be used in the answer choices.

To create the example above we will create a (random) polynomial and give three answers for the degree, also random. For convenience, we will set the first answer as the correct choice but don't worry, the system will automatically shuffle the choices to the student.

The algorithm would be

Wiris CAS | CalcMe |
---|---|

## Matching

Students answer this question type by choosing a simple label for each item on a list. This question type is just like a group of Multiple choice questions, but less powerful on each consecutive one (since the labels are used only once).

Note the Answers can be only plain text. You can still use variables in the Answers, but their values must be texts, numbers, or simple formulas (for example would be converted to `2^(1/2)`

but more complex formulas will probably not turn out nicely). On the other hand, questions can be anything, notably complex formulas or even plots.

Write the algorithm to define the variables you will use in the Question text and Feedback, and more importantly in questions and answers.

## True/False

Students answer this question type by simply choosing between the two options *true* or *false*.

Define the variables you will use in the Question text and Feedback. Remember to define the Boolean *Correct answer* variable, or else the correct answer will always be the same.

## Cloze

Embedded answers, or cloze, allow inserting different question types in one question. For example:

In this example there is a short answer type, as well as a multiple choice. Detailed information on cloze questions can be found at Moodle docs. WIRIS cloze types follow the same exact format, with the following features:

- There is no "Numerical" subtype, because none is needed.
- Variables can be used, but the pound symbol "#" has to be escaped with a backslash (e.g. "\#a" instead of the usual "#a").

The previous question, for example, could be made with the following text:

and in the variables tab:

Wiris CAS | CalcMe |
---|---|

In embedded short answer types, students can still write formulas in their answer with the editor popup by clicking on the square root symbol in the answer blank . To enable this, select "MathType in popup" in the Correct Answer tab:

Furthermore, we can notice that the algorithm of the question assure as that the polynomial will have no roots, so the question is not completely random. If we want to consider the three options, we have to change the answer's format in order to add the new variables.

Thus, the variable preceded by the sign `=`

will be took as the correct one and the others, those preceded by the sign `~`

, as the wrong ones. In the variables tab we will se:

Wiris CAS | CalcMe |
---|---|

### Shuffled answers

As of Moodle 3.0, multichoice questions "MC" in cloze are *not* shuffled. Instead, there are shuffled multichoice types to accomplish this in cloze. These are:

Unshuffled | Shuffled | |
---|---|---|

Drop-down | MC | MCS |

Horizontal | MCH | MCHS |

Vertical | MCV | MCVS |

The previous types are also available in the WIRIS cloze type. For example, if we replace the "MC" above with "MCHS" the question will look like:

and the multiple choice will be in random order each time.

#### Remarks

- Variables can be used in the answer in feedback fields (and only these).
- In the short answer type ("SA") each answer must be a variable or text, it cannot be a combination of both.
- If a variable is written as a formula, it will be converted to text inside a multichoice option (i.e. 2^(1/2) instead of )
- Settings in the Validation tab are common for all questions.