655 results authored by Christian Lawson-Perfect - search across all users.
-
Question in How-tos
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) in How-tos
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 in How-tos
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 in How-tos
The student is given a quadratic formula and asked to fill in a table of values of $f(x)$ for a given range of $x$.
There is also a plot of the points, which updates when the table is filled in, or the student can move the points to fill in the table.
The table uses the spreadsheet and JSXgraph extensions.
-
Question in How-tos
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 in How-tos
This question shows how explore mode can be used to loop through several versions of the same question. The variables for each version are stored in a list of "scenarios", and a counter works through that list each time the student moves on to the next part, labelled "try the next version of this question".
-
Question in How-tos
Shows that you can embed a 3D GeoGebra applet in a content area.
-
Question in How-tos
The student is shown a passage of code in the prompt to a "choose several from a list" part.
-
Question in How-tos
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 in How-tos
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 in How-tos
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 in Christian's workspace
The student is asked to calculate a division by the method of long division, which they should enter in a grid.
The process is simulated and the order in which cells are filled in is recorded, so the marking feedback tries to identify the first cell that the student got wrong, or should try to fill in next.
They're asked to give the quotient as a plain number in a second part, to check that they can interpret the finished grid properly.
-
Question in How-tos
Should not be used: this relies on a custom JavaScript which is not guaranteed to continue working.
Wrap the student's answer in
set()so it's marked as a set. -
Question in Demos
Shows how the "give a number which satisfies an equation" part type can be used to makr the student's number correct if it satisfies an equation of the form $f(x) = 0$.
-
Question in Demos
Examples of the following custom part types: Yes/no, List of numbers, Give a numerical input for an expression, Number entry modulo.
-
Question in Demos
This question shows a JSXGraph diagram above a mathematical expression input, containing a plot of the expression the student enters.
-
Question in DIAGNOSYS
No description given
-
Question in DIAGNOSYS
No description given
-
Question in DIAGNOSYS
No description given
-
Question in DIAGNOSYS
No description given
-
Question in DIAGNOSYS
No description given
-
Question in DIAGNOSYS
No description given
-
Exam (1 question) in Christian's workspace
No description given
-
Question in Demos
In the first part, the student must write an R function to compute the first $n$ terms of the series $\frac{1}{k!}$.
In the second part, they must use that function to calculate an approximation to $e$ using a given number of terms of the series.
-
Question in Demos
Several questions on interrogating the
mtcarsdataset built in to R. -
Question in Demos
The student must write R code to assign the given value to the variable
x. -
Question in Demos
This question shows how to display a plot generated in matplotlib from code written by the student.
-
Question in Demos
Given an unknown list, the student must write Python code to create a copy of it.
There's an alternative to catch the case where the student's variable is just a reference to the original list.
-
Question in Demos
Given an unknown list, the student has to write code to return the last item in the list.
-
Question in Demos
Given a randomly-generated list, the student must write code to return its first value.
There's an alternative to check if they get the second item, which they might do if they don't realise Python lists are zero-indexed.