151 results in How-tos - search across all projects.
-
Question
Do not use this: JME marking algorithms are the best way to change marking behaviour now, instead of JavaScript.
A very simple example of a custom marking script for a "choose one from a list" part
-
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
No description given
-
Question
There are copious comments in the definition of the function eqnline about the voodoo needed to have a JSXGraph diagram interact with the input box for a part.
-
Question
The student is shown two number entry gaps on either side of a 'less than' sign. Their answer is marked correct if the first number is less than the second, using a custom marking algorithm.
This shows how to mark the gaps in a gap-fill part together, rather than independently.
-
Question
This shows how to define a question variable whose value is a variable name with a few annotations added, so it's more convenient to use.
The question variable 'x' is defined to be the variable name
vec:underline:x
. -
Question
The student is given a value of $\cos(\theta)$ and has to find $\theta$.
Shows how to use subexpressions to represent randomly-chosen fractions of $\pi$ and surds, and have them displayed nicely.
-
Question
Shows how to create a simplified JME subexpression, and substitute it into a string variable.
-
Question
To prevent students from giving a trivial answer for a part which is used later in adaptive marking, you can consider it as invalid.
Part a of this question has a custom marking algorithm which marks an answer of zero as invalid. Any other answer is used in adaptive marking for part b.
-
QuestionA custom marking algorithm picks out the names of the constants of integration that the student has used for the $\cos$ and $\sin$ terms in their answer, and replaces them with $A$ and $B$ respectively, before comparing with the correct answer. This way, the student is free to choose the names for their constants of integration.
-
Question
Use the bareMatrices display flag to render a matrix without wrapping it in parentheses.
-
Question
A demonstration of how to use the "variable list of choices" option for a "choose one from a list" part to shuffle only some of the choices, and always have the same "I don't know" choice at the end of the list.
-
Question
This question uses a "formatted text template" variable to define a long passage of text which is shown to the student after they submit a part. A custom marking algorithm adds the text as a comment after the standard marking algorithm has finished.
-
Question
This question uses the linear algebra extension to generate a system of linear equations which can be solved.
We want to produce an equation of the form $\mathrm{A}\mathbf{x} = \mathbf{y}$, where $\mathrm{A}$ and $\mathbf{y}$ are given, and $\mathbf{x}$ is to be found by the student.
First, we generate a linearly independent set of vectors to form $\mathrm{A}$, then freely pick the value of $\mathbf{x}$, and calculate the corresponding $\mathbf{y}$.
To generate $\mathrm{A}$, we generate more vectors we need, then pick a linearly independent subset of those using the
subset_with_dimension
function. -
Question
The gap-fill part in this question is only marked correct if both gaps are correct.
The feedback from the individual gaps is not shown.
-
Question
A custom marking algorithm for a JME part estabishes whether the student's answer is equivalent to the expected answer, up to an arbitrary constant factor.
-
Question
The student's answer is a fraction of two polynomials. First check that the student's answer is a fraction, then check that the numerator is of the form $x+a$.
To find the script, look in the Scripts tab of part a.
-
Question
An all-or-nothing marking scheme for a gap-fill part: the student must answer every gap correctly to get all the marks. If any gap is incorrect they get 0 marks for the whole part.
-
Question
This question shows how to load a GeoGebra applet in JavaScript, avoiding the JME functions. This allows you to do some more complicated manipulation of the worksheet than simply redefining objects.
-
Question
The student is asked to factorise a quadratic $x^2 + ax + b$. A custom marking script uses pattern matching to ensure that the student's answer is of the form $(x+a)(x+b)$, $(x+a)^2$, or $x(x+a)$.
To find the script, look in the Scripts tab of part a.
-
QuestionThe matrix entry part in this question marks any symmetric matrix as correct, using a custom marking algorithm. A matrix is symmetric if it is equal to its transpose.
-
Question
No description given
-
Question
Choose from one of several pre-defined scenarios, and set variables to the corresponding values.
This question has three variables:
city
,population
, andpercent_like_chocolate
. These differ for each city. -
Question
An example of using the GeoGebra extension to ask the student to create a geometric construction, with marking and steps.
-
Question
This question contains a "choose several answers" part which has an "all-or-nothing" mark scheme: the student is only awarded marks if they tick all of the correct choices, and no incorrect choices.
-
Question
Display a number as a mixed fraction when appropriate, using the mixedFractions display option.
-
Question
The function randexp, provided by an extension, generates a random string matching the given regular expression.
-
Question
Update: you can now use the conditional visibility button to do this more easily - see the documentation.
If the statement or advice for your question differs greatly depending on a random variable (for instance, if you're picking from a selection of scenarios), you only want to show content for the relevant scenario.
This question shows one way of doing that.
-
Question
This question is out of date: use the currency function instead.