44 results in How-tos - search across all projects.

### Refine by Refine by

• #### Topics

• 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

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 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

This shows how to use a variable name annotation to put a hat on a variable name inside the \simplify command.

• 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

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

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.

• Question
A 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

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

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 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

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
This question demonstrates how to use the \simplify command to create natural-looking randomised mathematical expressions.
• Question
This question generates two variables, a and b. They're chosen to be distinct, and neither takes the value zero.
• Question

The student must enter a number in scientific notation, with separate boxes for significand and exponent. They only get the marks if both elements are correct.

• Exam (3 questions)

These questions show how to use JSON data to represent structured information.

• Question

Create a list of records for randomly-generated people. Each record contains the person's name, age, and list of hobbies.

The names and hobbies are generated from JSON data.

• Question

Choose from one of several pre-defined scenarios, and set variables to the corresponding values, defined in lists.

This question has three variables: city, population, and percent_like_chocolate. These differ for each city. We've defined a list for each variable, with the corresponding values. A variable called scenario picks a random position in the list, so the value of city, for example, is cities[scenario].

• Question

One method of randomly choosing names for variables. For each variable, we have 4 options. Create a list of 4 numbers, which is 1 for the name we want to use, and 0 otherwise.

Then, whenever we use that variable, multiply each of the possible names by the corresponding number in the list. When the expression is simplified, the unwanted names will cancel to 0, leaving only the name we want.

This is quite clunky!

(This question also uses a custom marking script to check that the student has simplified the expression)

• Question

Load data about members of the Scottish parliament from a JSON object, and display a table of 5 randomly picked MSPs.

• Question

Load data on some items held in the Cooper Hewitt collection, and show a table of 5 randomly picked items.

• Question
Shows how to safely include LaTeX in a string variable.