62 results in How-tos - search across all projects.
-
Question
The student is asked to enter a given matrix, but they're only required to fill in the upper triangle.
A custom marking algorithm fills in any empty cells in the lower triangle of the student's answer with the corresponding cell in the upper triangle.
The student is still warned if they leave any cells empty in the upper triangle.
-
Question
This demonstrates how to:
- Generate a fixed number of observations of data in two categories.
- Display the data in a table, with row and column totals.
- Ask the student to enter the data in a spreadsheet which is automatically marked.
-
Question
The CSS preamble adds a vertical line down the input for part b, to separate the two parts of the matrix.
-
Question
The student has to enter `diff(y,x,2)`, equivalent to $\frac{\mathrm{d}^2y}{\mathrm{d}x^2}$, as their answer. It's marked by pattern matching, using a custom marking algorithm.
-
Question
In the first part, the student must write any linear equation in three unknowns. Each distinct variable can occur more than once, and on either side of the equals sign. It doesn't check that the equation has a unique solution.
In the second part, they must write three equations in two unknowns. It doesn't check that they're independent or that the system has a solution. The marking algorithm on each of the gaps just checks that they're valid linear equations, and the marking algorithm for the whole gap-fill checks the number of unknowns.
-
Question
The student must solve a pair of simultaneous equations in $x$ and $y$.
The variables are generated backwards: first $x$ and $y$ are picked, then values for the coefficients of the equations are chosen satisfying those values.
-
Question
Shows how to use JSXGraph to make a sine graph with amplitude, frequency and phase controlled by sliders.
-
Question
This shows how to define a list of LaTeX strings, and pick a couple of them at random to display.
The "JSON data" type is used to define the available strings, so they're automatically marked as "safe" and curly braces aren't interpreted as variable substitution.
-
Question
This question shows how to generate a random set of $(x,y)$ samples, where $y = mx + c + \mathrm{noise}$.
The JSXGraph extension is used to show a scatter plot of the data. This isn't necessary if you just want to generate the data.
-
Question
This shows how to use a variable name annotation to put a hat on a variable name inside the \simplify command.
-
Question
A mathematical expression part with a pattern restriction to ensure that the student has extracted the highest common factor of two terms.
The answer must be of the form $a(b+cx)$, where $b$ and $c$ are coprime.
-
Question
The student is asked to give the roots of a quadratic equation. They should be able to enter the numbers in any order, and each correct number should earn a mark.
When there's only one root, the student can only fill in one of the answer fields.
This is implemented with a gap-fill with two number entry gaps. The gaps have a custom marking algorithm to allow an empty answer. The gap-fill considers the student's two answers as a set, and compares with the set of correct answers.
The marking corresponds to this table:
There is one root There are two roots Student gives one correct root 100% 50%, "The root you gave is correct, but there is another one." Student gives two correct roots impossible 100% Student gives one incorrect root 0% 0% Student gives one incorrect, one correct root 50% "One of the numbers you gave is not a root". 50% "One of the numbers you gave is not a root". Student gives two incorrect roots 0% 0% -
Question
The expected answer involves the logarithm of a negative number, which doesn't have a unique solution.
The part's marking algorithm evaluates the exponential of the student's answer and the expected answer, and compares those.
-
Question
The expected answer involves the logarithm of a negative number, which doesn't have a unique solution.
The part's marking algorithm checks that the student's answer differs from the expected answer by a multiple of $2\pi$.
-
Exam (1 question)
There's one question, which you have to get right 5 times in a row. If you get it wrong, you have to start again.
This makes more sense if the question is randomised!
-
Question
This shows one way of laying out matrix cells in a table, so that some cells can be filled in by the student.
At the time this was written, there's an open issue for allowing some entries in the matrix entry part to be filled-in, which would make this technique redundant.
Some CSS in the preamble adds the brackets around the table - it has to have the attribute
class="matrix-gaps"
-
Question
This question shows how to use the question's JavaScript preamble to request data from an external source, and use that data in question variables.
Note that this means the question only works when the external source is available. Use this very carefully, and avoid it if you possibly can!
-
Question
Shows that you can embed a 3D GeoGebra applet in a content area.
-
Question
The student is shown a passage of code in the prompt to a "choose several from a list" part.
-
Question
A random proper fraction $a/b$ with denominator in the range 2 to 30 is picked, and the student must write $\frac{a}{b} \pi$.
The point of this question is to demonstrate that the correct answer is shown as a multiple of $\pi$ rather than a decimal.
-
Question
The number entry part in this question has an alternative answer which is marked correct if the student's number satisfies an equation specified in the custom marking algorithm.
-
Question
A custom marking algorithm picks out the names of the constants of integration that the student has used in their answer, and tries mapping them to every permutation of the constants used in the expected answer. The version that agrees the most with the expected answer is used for testing equivalence.
If the student uses fewer constants of integration, it still works (but they must be wrong), and if they use too many, it's still marked correct if the other variables have no impact on the result. For example, adding $+0t$ to an expression which otherwise doesn't use $t$ would have no impact.
-
Question
Shows how the "decimal" data type can represent very small numbers with more precision than the default "number" data type.
-
Question
The student is given a number in base 10 and asked to write it in a given base, between 2 and 16. The number has at most 3 digits in the other base.
Until it's possible to derive the expected answer for a part in the marking algorithm (see the issue tracker), this question has "show expected answer" turned off, because it just shows the base 10 number.
-
Question
This question shows how to pick a GeoGebra worksheet to show to the student from a list, based on the value of a question variable.
-
Question
Give the student a larger area to write some free-form text, which isn't marked.
-
Question
Lay out gapfills so the student has to enter either the numerator or denominator of a fraction.
-
Question
Shows how to use the "random person" extension to pick random names for people in your questions.
-
Question
This question demonstrates defining an 'unknown' function $F(x)$ as a custom function so that it can be used in marking.
The definition of $F$ is arbitrary, so care must be taken to ensure it doesn't have more properties, such as evenness, than necessary.
-
Question
Shows how to create a simplified JME subexpression, and substitute it into a string variable.