151 results in How-tos - search across all projects.
-
Question
No description given
-
Question
Demo question showing how to use the matrix maths functions in JavaScript.
-
Question
This shows how to implement a recursive function in JavaScript with a nested function definition.
-
Question
The student must write a percentage, using the % symbol. An alternative answer checks the cases where they forgot the percent sign (e.g. 55), or entered the corresponding scalar (e.g. 0.55).
-
Question
This demonstrates how to render a set of tuples such as $\{(1,2),(3,4)\}$ in LaTeX, starting with a list of pairs of numbers.
-
Question
Shows how to enter a logarithm to an arbitrary base, in a mathematical expression part.
-
Question
Ask for the squares of five randomly-chosen numbers between 0 and 15.
The shuffle function puts a list in random order.
-
Question
Get the student to upload their experimental data in a CSV file, then ask them to compute statistics on it.
-
Question
A table showing how to substitute raw LaTeX code into question text.
NOTE: You probably don't want to do this! There's usually a more robust way, where you get Numbas to make the expression for you.
-
Question
Demonstrates how to create variables containing LaTeX commands, and how to use them in the question text.
-
Question
This question shows how to use the
currency
function to display amounts of currency with the correct symbols. -
Question
This question shows how to display a number like "1234" as "1,234", or "1 234", using the formatNumber function.
-
Question
A method of randomly choosing variable names - use the
expression()
JME function to create a variable name from a randomly chosen string.(This question also uses a custom marking script to check that the student has simplified the expression)
-
Question
Demonstrating that \$ produces a normal dollar sign.
-
Question
Use attributes of the form
eval-<name>
to dynamically set an attribute on an element based on question variables. -
Question
No description given
-
Question
Use the CSS preamble to give a bit more space between multiple choice answers.
-
Question
A randomised table is contained in a div tag with the id
#sales-table
, so it can be styled using the CSS preamble. -
Question
CSS classes "english" and "cymraeg" apply different background colours to English and Welsh portions of text.
-
Question
Defines a CSS class in the preamble which styles the "Lemma" environment, used in the statement.
-
Question
Example of displaying a randomly chosen image.
-
Question
One way of checking an equation is valid is to check that the difference between the LHS and RHS is 0.
-
Question
In progress!
-
Question
No description given
-
Question
Using a shuffled list variable to randomise the order of all options in a multiple choice part except the last one.
-
Question
Do not use this: alternative answers are the best way of accepting multiple correct answers.
-
Question
Student is asked whether a quadratic equation can be factorised. If they say "yes", they're asked to give the factorisation.
-
Question
Demonstrates that the marking algorithm for "match text pattern" parts doesn't put quotes around substituted strings any more.
-
Question
A couple of different ways of asking the student to enter a large number, to get around the floating point imprecision problem.
-
Question
Do not use this: adaptive marking is the best way to access the student's answer to another part.
Shows how to retrieve the student's answer to another part from a custom marking script.