Question types

On this page, we list the WIRIS question types and describe how they work. At the end of each section, we specify which tabs Wiris Quizzes Studio should have in the corresponding question type.

Wiris Quizzes 3 documentation

This documentation page has been updated to the latest Wiris Quizzes version. You can find the same information for the previous versions here.

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. You only need to write the question's statement and the algorithm of CalcMe to, in this case, generate the representation of the function.

If you want more information on creating and configuring graphics and plotters, you can see its dedicated page. All configurable settings must be defined through CalcMe except the size of the graphic plotters in the question statement. To do so, you must use the following commands:

  • #yourplottername_desiredsize
  • #yourplottername_desiredwidth_desiredheight

For example, you can display a plotter with a custom size of 400px per 300px by using the syntax #plotter1_400_300 on the question's statement.

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 sections to configure it.

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

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 Input options section, set the Grade answer boxes separately checkbox in the Compound answer blank. 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.

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

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 square root of 2 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.

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.

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 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 Define random variables and functions section:

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 "Math editor in a popup" in the Input options section:

Furthermore, we can notice that the algorithm of the question assures 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 format in order to add the new variables.

Thus, the variable preceded by the sign = will be taken as the correct one and the others, those preceded by the sign ~, as the wrong ones. In the variables tab we will use:

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.


  • 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 square root of 2)
  • Settings in the Validation tab are common for all questions.