161 results in How-tos - search across all projects.
-
Question
Show one of several blocks of text depending on the value of a question variable.
As well as a simple check for the value of a variable, the condition to display a block of text can be a complex expression in any of the question variables - in this example, depending on the discriminant of the generated quadratic.
-
Question
Student is given a few numbers to choose from. They must pick at least two, and then give the sum of their chosen numbers.
-
Question
This question shows how to ask for a number in scientific notation, by asking for the significand and exponent separately and using a custom marking algorithm in the gap-fill part to put the two pieces together.
Answers not in standard form, i.e. with a significand not in $[1,10)$, are accepted but given partial marks.
-
Question
A randomly generated list of numbers is shown to the student. They must tick every occurrence of the lowest number. The number of occurrences isn't always the same - sometimes the minimum is unique and sometimes it is repeated. The
mapfunction makes it easy to construct a marking matrix. -
Question
The student has to compute $a^b$ and $b^a$, then decide which of the two is bigger.
This question shows how to set up a custom marking matrix for the "choose one from a list" part, based on values used elsewhere in the question. It could use adaptive marking to use the student's incorrect values for the comparison, but doesn't at the moment.
-
Question
A "match choices with answers" part where the student either gets all the marks or none. Any incorrect choice is penalised with a huge negative mark, so they end up with the minimum mark of 0.
-
Question
A mathematical expression part whose answer is the product of two matrices, $X \times Y$.
By setting the "variable value generator" option for $X$ and $Y$ to produce random matrices, we can ensure that the order of the factors in the student's answer matters: $X \times Y \neq Y \times X$.
-
QuestionThis question contains a single "match text pattern" part which accepts anything you type into it.
-
QuestionThis question shows how to make the correct answer to a "choose one from a list" part depend on randomised question variables, in a couple of ways. The first part uses JME expressions to define the marks available for each choice. The second part uses the "custom marking matrix" option.
-
A randomised line in a GeoGebra worksheet - construct the definition of the line manually Should not be usedQuestion
Construct a line in a GeoGebra worksheet by writing its definition string by hand.
This isn't a very neat way of doing this. It's easier to define two points in GeoGebra, then make a line through those points. You can set the positions of the points from Numbas using vectors.
-
Question
Construct a line through two points in a GeoGebra worksheet. Change the line by setting the positions of the two points when the worksheet is embedded into the question.