Moodle 1.9 Math Quizzes: Part 3

Exclusive offer: get 50% off this eBook here
Moodle 1.9 Math

Moodle 1.9 Math — Save 50%

Integrate interactive math presentations, build feature-rich quizzes, set online quizzes and tests, incorporate Flash games, and monitor student progress using the Moodle e-learning platform

$23.99    $12.00
by Ian Wild | November 2009 | Moodle Open Source

Read Part One of Moodle 1.9 Math Quizzes here.

Read Part Two of Moodle 1.9 Math Quizzes here.

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

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

    Moodle 1.9 Math

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

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

    Moodle 1.9 Math

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

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

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

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

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

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

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

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

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

    Moodle 1.9 Math

  18. When you have finished testing, click on the Finished button at the bottom of the page.
Moodle 1.9 Math Integrate interactive math presentations, build feature-rich quizzes, set online quizzes and tests, incorporate Flash games, and monitor student progress using the Moodle e-learning platform
Published: November 2009
eBook Price: $23.99
Book Price: $39.99
See more
Select your format and quantity:
  • The next step is to deploy the question in order for us to include it in a quiz. On the Questions available from STACK question engine page, click on the Deploy link:
    Moodle 1.9 Math
  • The question is now deployed:

    Moodle 1.9 Math

  • Close the STACK question configuration window (or tab, depending on your browser) and return to the Add Opaque Question page. Refresh the page in your browser. Our new question will be listed in the Question Name drop-down list. When you have your STACK question selected, give the Moodle question a name:

    Moodle 1.9 Math

  • Save the changes by clicking on the Save changes button.
  • That's it! We're done.

    We are now ready to add this question into a quiz. If you haven't read them already, you'll find the details on this process earlier in this article in the Adding a math quiz section. Here is how my question looks:

    Moodle 1.9 Math

    Enhancing STACK questions—graphs, charts, and random variables

    Although not immediately obvious, you can certainly include images and graphs in your Question Stem. Here is an example of a Google chart included in the stem:

    Moodle 1.9 Math

    Here's how it looks when included in a Moodle quiz:

    Moodle 1.9 Math

    Remember that we needed to install GNUPLOT on the server. This is because we can also plot functions in the stem using special commands. Here's another example (from the STACK sample questions):

    Moodle 1.9 Math

    This will be displayed as the following:

    Moodle 1.9 Math

    From this example, you can see how easy it is to include HTML in the stem text. For more details on what you can include in the stem, visit http://stack.bham.ac.uk/wiki/index.php/CASText.

    You can also include random variables in your questions. Check out http://stack.bham.ac.uk/wiki/index.php/Authoring_quick_start for more information on random questions.

    Getting more help with STACK

    For extra help with STACK don't forget to check out the STACK Wiki at http://stack.bham.ac.uk/wiki/index.php/Main_Page. There is also a STACK Moodle at http://www.stack.bham.ac.uk/ that is well worth visiting.

    Ask the admin: Installing the Feedback module

    Currently, the Feedback module is an optional module. You will need to visit http://moodle.org/mod/data/view.php?d=13&rid=95 to download the correct package (depending on the version of Moodle you have installed). Let's run through the process:

    1. Remember to enable Maintenance mode when installing new features into your Moodle. From the Site Administration block, select Server | Maintenance mode. You can also specify an optional maintenance message:

      Moodle 1.9 Math

    2. Once we have the correct package downloaded, we need to make sure the contents are extracted to the correct locations on the server. Obviously, how you get the files to where they need to be on your server depends on your system configuration. For example, if you are running your own server or if you are using shared hosting, you may want to download the package to your own computer and upload them to the server using an FTP client. In fact, I've downloaded the package directly to my Moodle server (a Linux server), and I'm going to extract them directly to the correct locations on the server using Unzip.
    3. Once the files have been copied over, make sure file permissions and file ownership are set correctly.
    4. Once the Feedback module files have been copied over, we need to return to the site' front page and click on Notifications in the Site Administration block:

      Moodle 1.9 Math

    5. Moodle will now update its internal database, creating all the tables required for the new module. Because we are installing both a new activity and a new block, there are two sets of tables Moodle needs to configure. As Moodle configures its internal database, click on the Continue button when required:

      Moodle 1.9 Math

    6. Once Moodle has finished configuring its internal database, visit any course and turn on the editing. Click on any Add an activity drop-down menu, and you will see that a new Feedback activity has been added to the list:

      Moodle 1.9 Math

    7. Likewise, click on the Blocks block, and you will see that a new Feedback block has been added to the list of available blocks:

      Moodle 1.9 Math

    Did you remember to enable maintenance mode? We need to remember to disable it through the Site Administration block and the Server  Maintenance mode| link.

    The Feedback module is now ready to use.

    Summary

    In this article, we learned how to include math quizzes in our Moodle courses. Specifically, we covered these topics:

    • How to create a Moodle quiz. We investigated both the calculated and numerical question types (extremely useful for math teaching).
    • How to install and use the Feedback module.
    • How to install and integrate STACK into Moodle.
    • How to create algebra questions that can be automatically marked using STACK.

    We saw how Moodle is great for creating and marking questions automatically. There is a potential problem with Moodle not being able to properly understand the commutative and associative properties (especially when it comes to algebraic structures), but we installed STACK to address this issue.

    [ 1 | 2 | 3 ]

    If you have read this article you may be interested to view :

    Moodle 1.9 Math Integrate interactive math presentations, build feature-rich quizzes, set online quizzes and tests, incorporate Flash games, and monitor student progress using the Moodle e-learning platform
    Published: November 2009
    eBook Price: $23.99
    Book Price: $39.99
    See more
    Select your format and quantity:

    About the Author :


    Ian Wild

    A physicist by profession, Ian’s career has always focused primarily on communication and learning.

    Fifteen years spent in private industry designing communication systems software eventually saw Ian concentrate on the development of accessibility and learning aids for blind, partially sighted, dyslexic and dyscalculic computer users - whilst also working part-time as a math and science tutor.

    Teaching only part-time meant not spending as much time with his students as he would have wanted. This and his background in learning and communication technology

    Books From Packt


    Matplotlib for Python Developers
    Matplotlib for Python Developers

    jQuery UI 1.7: The User Interface Library for jQuery
    jQuery UI 1.7: The User Interface Library for jQuery

    Linux Email
    Linux Email

    ModSecurity 2.5
    ModSecurity 2.5

    Moodle 1.9 for Second Language Teaching
    Moodle 1.9 for Second Language Teaching

    Moodle 1.9 Extension Development [RAW]
    Moodle 1.9 Extension Development [RAW]

    Moodle 1.9 Multimedia
    Moodle 1.9 Multimedia

    Moodle 1.9 for Teaching 7-14 Year Olds: Beginner's Guide
    Moodle 1.9 for Teaching 7-14 Year Olds: Beginner's Guide


    No votes yet

    Post new comment

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.
    j
    z
    X
    g
    D
    C
    Enter the code without spaces and pay attention to upper/lower case.
    Code Download and Errata
    Packt Anytime, Anywhere
    Register Books
    Print Upgrades
    eBook Downloads
    Video Support
    Contact Us
    Awards Voting Nominations Previous Winners
    Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
    Resources
    Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software