Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds

Moodle 1.9 Math Quizzes: Part 3

Save for later
  • 3 min read
  • 01 Dec 2009

article-image

Using STACK

My original problem was this: how can I ask my students to expand (x+4)(x-3) and have Moodle automatically mark my students' answers—hopefully with an answer equivalent to x2+x-12. Let's create that question now.

Creating a STACK question

Return to your course's front page and, from the course administration block, click on Questions to open the course question bank. Then, follow these steps:

  1. Click on the Create new question drop-down menu and choose Opaque:

    moodle-19-math-quizzes-part-3-img-0

  2. On the Add Opaque Question page, click on Manage Stack Questions:

    moodle-19-math-quizzes-part-3-img-1

  3. A new window (or tab, depending on your browser) is opened. On the Questions available from STACK question engine page, click on the New Question link:
    moodle-19-math-quizzes-part-3-img-2
  4. Give your question a name (suitable for you to be able to find it again and know what the question is when you do).
  5. Write your question in the Question Stem. You need to be careful with the format: math notation can be written in LaTeX (denoted, in my case, with single dollars). Note how I've specified a variable for the student's answer (#answer#). You can call this variable whatever you like, as long as you enclose it in #:

    moodle-19-math-quizzes-part-3-img-3

  6. Scroll down to the Update button immediately under the Question Note option and click on it:

    moodle-19-math-quizzes-part-3-img-4

  7. An Interaction Elements section is now inserted into the page. You will need to specify the answer in the Teacher's Answer row. Be careful with the format as it has to be a valid CAS expression (for example, 3x should be specified as 3*x). When you have filled in your answer, click on the Update button at the bottom of this section:

    moodle-19-math-quizzes-part-3-img-5

  8. We've asked the question and specified our answer. We now need to program STACK to understand whether or not the student's answer is correct. In the Potential Response Trees block, specify a name for the response and press the + button:

    moodle-19-math-quizzes-part-3-img-6

  9. The student's answer is stored in the variable answer. My answer needs to be specified in the TAns (teacher's answer box). As this is the correct answer, I can copy and paste from the Teacher's Answer in the Interaction Elements box. Notice that the Answer test is AlgEquiv (algebraic equivalents):

    moodle-19-math-quizzes-part-3-img-7

    Unlock access to the largest independent learning library in Tech for FREE!
    Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
    Renews at €14.99/month. Cancel anytime
  10. Now, click on the Update button at the bottom of the Potential Response Trees section.
  11. A common mistake when expanding brackets is to forget to multiply out completely (typically submit x2-12 as the answer). Let's accommodate this now in the Potential Response Trees. Add another PR (potential response) by choosing to add 1 new potential response from the drop-down list and clicking the Add button:

    moodle-19-math-quizzes-part-3-img-8

  12. Populate the new potential response with the incorrect answer and some feedback. Remember to ensure that they aren't awarded a mark for getting the answer wrong:

    moodle-19-math-quizzes-part-3-img-9

  13. We now have two nodes in the Potential Response Trees that we need to link together. From the actual correct answer response (node No: 0), click on the Next PR drop-down in the false block and choose 1:

    moodle-19-math-quizzes-part-3-img-10

  14. Can you see how we are linking potential responses together to form a tree of nodes? Click on the Update button at the bottom of the Potential Responses section to save your changes.
  15. Scroll down to the bottom of the page, and click on the Save button:

    moodle-19-math-quizzes-part-3-img-11

  16. The page reloads, and if we have specified everything correctly, then we now have the opportunity to try our new question. Click on Try question:

    moodle-19-math-quizzes-part-3-img-12

  17. Try specifying different answers to see how Moodle responds. Make sure any feedback you specified is displayed correctly:

    moodle-19-math-quizzes-part-3-img-13

  18. When you have finished testing, click on the Finished button at the bottom of the page.