# True / False

We already saw True / False questions in a couple of previous sections, but now we will describe in detail all relevant fields for this type of question.

For this, we will take the following example, consisting of a question that presents a real number and another type of number (natural, integer or rational) and asks if the mentioned number belongs to the given set.

When writing the wording of the question, we only use WIRIS editor to insert the  symbol and remember the notation #name for variables:

Programming this question is quite simple. To save time, we create a function that returns a random integer between -100 and 100 and we use it repeatedly to create the desired numbers. We create an integer z simply by running the a() function, a rational number q with a division and an irrational number r with the square root of the absolute value of the result of the a() function.

Then, we choose by chance one of these three random numbers and a set of numbers among natural, integer and rational numbers. The solution, sol, will be the result of asking whether the e number belongs to the c set, where e and c are the names of the variables used.

Observe the small but important field at the beginning of this screen capture. Only for the type of question True / False, the correct answer must be inserted in the Answer field of the WIRIS quizzes section.

The General feedback field offers the possibility to provide the student with a feedback, regardless of his/her answer.

Besides, in the same section, General settings, we have several useful fields. The Correct answer field will be omitted, since it is not dynamic and we have already determined which is the correct answer with the Answer field of the WIRIS quizzes section. Consequently, the value inserted is irrelevant.

The other two fields in this section can be useful, but with a small redefinition. Feedback (True) and Feedback (False) now mean Feedback (Correct answer) and Feedback (Wrong answer), regardless of the truth or the falseness of the wording. In other words, in these two fields we cannot include sentences such as "The correct answer is True", because this value is usually dynamic, it will change whenever it runs. We cannot talk about truth or falseness, but we must refer to the correctness or the mistake of the answer.

Let us see what the student views in case of wrong answer:

And in case of correct answer: