Skip to content

Sample Questions

STACK is distributed with sample questions in


The sample questions are in English.

We would encourage colleagues to release their materials under a creative commons licence. Please contact the developers.

Moodle courses released with STACK

STACK is released with a demonstration course which contains hundreds of tested STACK questions. Many have a full worked solution and random variants, and this represents a substantial resource.


You can "restore" this into your version of Moodle. It has a number of quizzes, pre-created with questions and deployed variants. It also has a large question bank, with questions not arranged into quizzes.

Materials released with STACK

The file sample_questions.xml contains the following questions.


This is a simple, single part integral question with randomization.


A rectangle has length 6cm greater than its width. If it has an area of 27cm, find the dimensions of the rectangle.

This is a multi-part question which illustrates follow-through marking. Get the first part wrong, but the second part correct based on the first part to see the feedback.


This question creates two random matrices and asks students to multiply them together. See the notes on matrices.


Given a complex number determine and . Where , and are randomly generated numbers.

See the authoring quick start 7.


In this question a student is asked to find a cubic spline. This question illustrates the following.

  • Separate properties are established, i.e. the answer is a cubic, has the right end point values and correct derivatives at the end points.
  • Plots are incorporated, including a plot of a student's incorrect answer.


In this question a student is asked to give examples of odd and even functions.

  • There are four separate parts. Separate properties are established by each.
  • For two of the parts there are non-unique correct answers.
  • Feedback based on calculations of students' answers is included.


In this question a student is asked to solve a quadratic by working line by line.


This file contains three example questions on 2nd order linear ODEs with constant coefficients. They illustrate the need to establish multiple independent properties, even in cases where the teacher might be tempted to look at the specific answer.


This file contains two example multiple choice questions. (Not the place to start when authoring in STACK: see the authoring guide for more details.)


With v4.0 of STACK the CASText parts of the question gain blocks which allow the text to contain segments that are evaluated further and which may have parameters that define their behaviour. See the specific documentation about blocks for more details.

Open Educational Resources

Abacus is a material bank for STEM education which seeks to produce, share and host high-quality educational material between collaborators. For more information see

Other sources of questions

If you have materials you would like to release, please add the details here.