STACK

Question types ::: qtype_stack
Maintained by Christopher Sangwin, TimTim Hunt
Part of set STACK.
The STACK question type adds a sophisticated assessment in mathematics and related disciplines, with emphasis on formative assessment underpinned by computer algebra.
Latest release:
2241 sites
1k downloads
101 fans
Current versions available: 3

The STACK system is a computer aided assessment package for mathematics, which provides a question type for the Moodle quiz. In computer aided assessment (CAA), there are two classes of question types.

  • Selected response questions
    In these questions, a student makes a selection from, or interacts with, potential answers which the teacher has selected. Examples include multiple choice, multiple response and so on.
  • Student-provided answer question
    In these questions the student's answer contains the content. It is not a selection. Examples of these are numeric questions.

STACK concentrates on student-provided answers which are mathematical expressions. For example, a student might respond to a question with a polynomial or matrix. Essentially STACK asks for mathematical expressions and evaluates these using computer algebra. The prototype test is the following pseudo-code.

if
  simplify(student_answer-teacher_answer) = 0
then
  mark = 1,
else
  mark = 0.

STACK uses a computer algebra system (CAS) to implement these mathematical functions. A CAS provides a library of functions with which to manipulate students' answers and generate outcomes such as providing feedback. Establishing algebraic equivalence with a correct answer is only one kind of manipulation which is possible.

Using CAS can also help generate random yet structured problems, and corresponding worked solutions.

In STACK a lot of attention has been paid to allowing teachers to author and manage their own questions. The following are the key features.

  • Question versions are randomly generated within structured templates.
  • There are many different kinds of inputs. These are, for example, where the student enters a mathematical expression, or makes a true/false selection.
  • Mathematical properties of students' answers are established using answer tests within the CAS Maxima.
  • Feedback is assigned on the basis of these properties using a potential response tree. This feedback includes:
    1. Textual comments for the student.
    2. A numerical mark.
    3. Answer notes from which statistics for the teacher are compiled.

These broadly correspond to formative, summative and evaluative functions of assessment. Which of these outcomes is available to the student, and when, is under the control of the teacher.

  • Multi-part mathematical questions are possible: each question may have any number of inputs and any number of potential response trees. There need not be a one-to-one correspondence between these.
  • Partial credit is possible when an expression only satisfies some of the required properties.
  • Plots can be dynamically generated and included within any part of the question, including feedback in the form of a plot of the student's expression.

Screenshots

Screenshot #0

Contributors

Christopher Sangwin (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Christopher Sangwin
    Tue, 15 Aug 2023, 7:33 PM
    Florian,
    How to resolve this is documented here: https://docs.stack-assessment.org/en/Installation/Testing_installation/#troubleshooting-an-upgrade
    Some how it looks like you have either not upgraded the plugin DB correctly, or have newer code.
  • Carlos Ruiz
    Tue, 15 Aug 2023, 8:25 PM
    Good morning Florian. It happened to me any time I do an upgrade. You just need to run the healthcheck script and recreate the Maxima image (Create Maxima image). Perhaps you also need to, temporarily, increase the CAS connection timeout to 50.
    Please let me know if it worked.

    Best regards
  • Josh Joubert
    Sat, 3 Feb 2024, 11:51 PM
    Hello to the devs and maintainers. I have an issue that I hope I'll be able to get assistance with.

    I just installed STACK for the first time without issues. I enabled all the necessary PHP features, and all the extra dependencies were successfully installed. During my experimentation, I've been unable to successfully create and save any STACK question, however.

    The error that keeps plaguing me is "CAS failed to return any data due to timeout.", and is displayed for the input model answer field. Note that I have no question variables. Changing the "CAS connection timeout" value (qtype_stack | castimeout) unfortunately doesn't resolve the problem; nor does changing the Maxima version.

    I'm using Moodle 4.3.2 (Build: 20231222) on a Linux server with PHP 8.2. Furthermore, I'm using STACK 4.5.0 for Moodle 3.9+
  • Christopher Sangwin
    Sun, 4 Feb 2024, 12:11 AM
    John, I've encountered this problem occasionally depending on which version of Maxima you have. The very fist time Maxima runs on the server it loads a lot of text-based lisp code and compiles this on the server. That's all perfectly normal. STACK uses the "timeout" and if this is too low this crucial first execution will not finish. If you can, first load Maxima on the command line and execute a non-trivial command (e.g. diff(x^2/(1+x^2), x); then quit(); ) Then up the timeout on the plugin page and try again. If this works you can return the timeout to a lower level in production. If this does not work, follow these docs: https://docs.stack-assessment.org/en/Installation/Testing_installation/#troubleshooting-an-installupgrade
  • John Rodriquez
    Wed, 3 July 2024, 7:54 PM
    Hi,

    Nice plugin! Are there any plans to make the STACK question type compatible with the Moodle mobile app?

    Regards,
    John
  • Christopher Sangwin
    Wed, 3 July 2024, 8:18 PM
    John,
    I was looking at the Moodle mobile app requirements last week. We're considering it. I'm not exactly sure how much work it will be.

    If you'd like to raise a request here: https://github.com/maths/moodle-qtype_stack other members of the community can voice their views. If there is significant demand we'll give it a higher priority,

    Chris
  • Joel Scott
    Fri, 2 Aug 2024, 1:22 PM
    Can anyone help me, I'm trying to update my STACK version to anything above 4.5 (I want to play with the new Geogebra options) I've tried using the installation process above and I'm getting:

    There is a request to install plugin STACK (qtype_stack) version 2024072400 from the Moodle plugins directory on this site. However, this plugin is already installed on the site.

    My current STACK version is 2023102700.

    Current Moodle version is: Moodle 4.3+ (Build: 20231201)

    Thanks in advance!
  • Christopher Sangwin
    Fri, 2 Aug 2024, 10:30 PM
    Thanks for reporting this Joel. Please look for updates here: https://github.com/maths/moodle-qtype_stack/issues/1240
  • navid mor
    Wed, 28 Aug 2024, 4:55 PM
    Imagine clicking into a world where bulky, costly printed catalogs have been relegated to memories. In their place, you hold a digital catalog that flips effortlessly, displaying images, videos, and even background music that transports you. This online catalog is web-based, always updated, and ready to captivate audiences.

    But this is just the beginning of the story. With Cataloger, the first web-based digital catalog design software, you can create your smart catalog without any need for programming knowledge and easily publish it in the digital space. Simply share your catalog's link on social media or direct customers to it with a QR code on your business card.

    Now is the time to effortlessly create your online catalog without any hassle and revolutionize your marketing world.
    https://cataloger.org/digital-catalog-design
  • Carlos Ruiz
    Wed, 25 Sept 2024, 12:06 PM
    Good evening.

    I start all my questions with a fpprintprec: 4 line but realized that the numbers showed truncated (for example, a value of 2.17691 showed 2.176). Would anyone be so kind to confirm that latest Stack version shows rounded numbers (for example, a value of 2.17691 now shows 2.177)?
    I recently upgrade my Moodle to 4,4 version.
    Best regards
    PD: sorry about my English
  • Kathleen Reid
    Mon, 16 Dec 2024, 2:30 PM
    I particularly appreciate the flexibility in question design, where teachers can create structured, random problems and provide detailed feedback that’s tailored to each student’s response. IPL betting ID
  • Birgit Lachner
    Mon, 17 Mar 2025, 10:49 PM
    Hi, I have got some questions ...

    1.) Is there a place to bring ideas to the developer? Is https://github.com/maths/moodle-qtype_stack/issues the right place?
    2.) Is/Are there Forum where to discuss the use auf STACK questions? Lets say I want to have a special kind of question and I need held as it does not works as wanted.

    Thanks ... Birgit
  • Christopher Sangwin
    Mon, 17 Mar 2025, 11:19 PM
    Birgit, thanks for asking.

    1. General developer discussion (not potential security issues!) https://github.com/maths/moodle-qtype_stack/issues
    2. Contact the developers in private, then email me at C.J.Sangwin@ed.ac.uk
    3. Community discussion, including help with particular questions (use not development) then https://stack-assessment.zulipchat.com/#

    I hope we can help. Thanks for your interest in STACK.
  • Samuel Fischer
    Fri, 28 Mar 2025, 8:09 PM
    Hi! Will there be a new version available for Moodle 4.4.7 / 5.X which fixes MDL-83541 ?
  • Christopher Sangwin
    Fri, 28 Mar 2025, 9:47 PM
    Yes, we will support newer versions of Moodle, and I hope to fix MDL-83541 for Moodle 4.4.7 / 5.X.
1 2 3 4 5 6 7
Please login to post comments