105 results in Demos - search across all projects.
-
Question
A demo of the matrix entry part and its options.
-
Question
Demonstrates how to display a plot generated in R.
-
Question
This easy question is intended to be used by administrators to test the integration of Numbas with a learning environment.
-
Question
In four parts, the student builds up the definition of a class representing a rectangle. First they write the constructor, then add methods to compute area and perimeter.
In the final part, they must use the methods to write a function which determines if a rectangle's area is larger than its perimeter.
-
Question
Given the gradient of a slope and the coefficient of friction for a mass resting on it, use the equations of motion to calculate how it moves.
Includes a GeoGebra rendering of the model.
-
Question
A demo of the number entry part and its options.
-
Question
The student is shown a plot of a mystery function. They can enter values of $x$ check, within the bounds of the plot.
They're asked to give the formula for the function, and then asked for its value at a very large value of $x$.
A plot of the student's function updates automatically as they type. Adaptive marking is used for the final part to award credit if the student gives the right value for their incorrect function.
-
Question
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
Examples of the following custom part types: Yes/no, List of numbers, Give a numerical input for an expression, Number entry modulo.
-
Question
This shows how to take an expression given by the student and plot the implicit curve of points where it equals zero.
-
Question
This question shows a JSXGraph diagram above a mathematical expression input, containing a plot of the expression the student enters.
-
Question
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
Several questions on interrogating the
mtcars
dataset built in to R. -
Question
The student must write R code to assign the given value to the variable
x
. -
Question
This question shows how to display a plot generated in matplotlib from code written by the student.
-
Question
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
Given an unknown list, the student has to write code to return the last item in the list.
-
Question
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.
-
Question
The student must write code to compute the standard deviation of an unknown list of measurements.
The suggested answer uses numpy.std.
-
Question
This is the simplest demonstration of the "code" part type I could think of: write Python to assign
x = 1
.An alternative answer gives a hint if the student's code doesn't define x at all.
-
QuestionAn interactive experiment about probability: the student must first 'design' the experiment by deciding how many times they're going to flip a coin, and define what number of heads would make them believe the coin is biased. They must then enter the results of their coin flips, calculate the percentage of heads, and finally decide if the coin is biased, using the condition they specified in the design stage. There are optional hints at each stage.
-
Question
A demonstration of embedding various kinds of media in a question.
-
Question
Shows how to use the bin function to group data into equal-sized intervals.
-
Question
An experiment using a PhET applet. The student can attach masses of different weights to a spring, and is asked to measure and record how far it stretches. Their measurements are shown on a graph, and they're asked to estimate the formula for the length in terms of the mass.
-
Question
The student is shown a diagram with measurements of rooms in a house. They have to enter the measurements in a spreadsheet, then the area of each room, and finally the total area of the house.
-
Question
Using some passages of text, fill in a product fact sheet.
A simple example showing how to mark entries in a spreadsheet.
-
Question
Demonstrates how to construct a spreadsheet value from scratch, without uploading an .xlsx file.
-
Question
Fill in a truth table: the values for "A" and "B" are filled in, and the student has to work out "A or B" and then "(A or B) implies B".
-
Question
Given a data sheet with distances between cities and costs for different forms of transport, and some information about modes of transport used, fill in a form for a journey.
-
Question
The student is shown a table with rows for each class in a school, and two columns of numbers: books, and children. They have to work out the column totals, and the number of books per child, and enter them in the table.