-
MathType
-
Wiris Quizzes
-
Learning Lemur
-
CalcMe
-
MathPlayer
-
Store FAQ
-
VPAT for the electronic documentation
-
MathFlow
-
BF FAQ
-
Miscellaneous
Sum of two random fractions
Reading time: 2minImagine you want to include this question on a quiz. All the students will see the same question with the same fraction! Wouldn't it be nice to have one different question for each student? Well, this is possible with WirisQuizzes with a simple command.
The idea is to generate four random numbers that will be the numerators and denominators of our fractions. Every time a student opens the question, different numbers will appear in the statement.
And what about the correct answer? Do we need to assign to each possible case its correct answer? Of course not! We will treat fractions as variables, perform their sum inside CalcMe so it will do the computations for us, and then we set the result as the correct answer.
Select the question type
First, we need to select which type of question we will use. Just as in the examples above, the best possible options are Short answer because we expect the student to answer with just the result.
Create random numbers
Before writing the statement, let us write the algorithm of the question. Open WirisQuizzes Studio by clicking
The Basic Mode allows us to retrieve a random integer number in a given interval. We need four random numbers: two numerators and two denominators, which we will call a, b, c, and d (the name of the variables is essential, as we will see later on). We need to click on the Add variable button to add them.
We have four random numbers, the numerators between 1 and 9 (both included) and the denominators between 2 and (both included too). That is all we have to do regarding the generation of the random variables.
Tip
If you want to see more details regarding the Basic Mode of defining random variables, you can see its detailed page here.
Write the correct answer
Now, we need to define the correct answer in the corresponding input field, considering that the answer is not a number now. As you may see, the evaluate()
command will be automatically displayed there to be used if we want our solution to be computed.
If we directly write the correct answer without the evaluate() command, the result showed to the student as the expected answer will appear without any performed calculus. Both options are valid, but we prefer to display the final fraction when the students answer the question in this example. Conversely, that's what it would be displayed.
Note
Recall the student will see the same math editor as we do where we write the correct answer or in the Test the question section, so it is essential for either the Math editor embedded or Math editor in popup option to be selected.
Make sure it all works
Finally, go to the Test the question section and try some possible answers: check everything works as expected. Although the provided correct answer provided is simplified, if no additional property is selected, any answer mathematically equal to the correct one will be accurate.
Note
Now we have another button next to the correct answer in the Test this question section:. This button appears because our algorithm deals with randomness. Every time we click this button, the algorithm will be re-executed, and the random numbers will change.
Save the changes and assign full grade
Once you have finished testing the question, go back to the home page and click to save changes and WirisQuizzes Studio window closes.
Assign the full grade to the correct answer.
Write the statement
Now we proceed to write the statement of the problem. Recall that our numerators and denominators were stored in variables called a
, b
, c
, d
. Remember, we have to write the name of the variables preceded by the pound sign #
. Fractions can be written with MathType
Finally, save the question by clicking Save and continue editing , so the question is held, but we are still viewing the editing page.
Student view
Now, we should be able to preview the question. Click Preview.
A new window will show up with the question shown as the student will see it. Here we can test the behaviour of the question again.
Every time we preview the question, the numbers in the statement will be different.