06c2 Moodle Add An Activity Quiz XML
06c2 Moodle Add An Activity Quiz XML
moodlenotes.wazmac.com
Document Overview
This document is part of a series of documents designed for teachers who are new
to Moodle, but who may also have some responsibility in managing its
implementation in a school environment.
A previous document in this series discussed how to create a new Course within
your Moodle framework. Courses can be organised into Topics or Weeks, and each
Topic (or Week) can then be populated with Resources and Activities.
This document assumes that you have already setup your Moodle site framework
and created a Course, as described in the previous documents in this series.
Some of the processes described in this document assume that you have Administrator access or Course
Creator / Editing Teacher access to be able to modify a Moodle course.
If you dont have the appropriate access to be able to undertake these activities, contact your schools Moodle
administrator. Alternatively, if you would like to experiment with the processes described in this document, you
can setup a free Moodle account (with you as the administrator) at www.keytoschool.com.
Wazzas QuickStart - 6c2. Getting Started with Moodle - Adding a Quiz activity with XML
1
1. Preparing your Quiz Questions
Rather than entering quiz questions directly in the Moodle quiz builder, we
will prepare our Quiz questions in a text editor, such as TextEdit (Mac) or
Notepad (Win).
1.1. Open your text editor and create your quiz questions and answers,
following the formatting example at the above web site, similar to the
multiple-choice example below. Line breaks and spelling are critical.
Wazzas QuickStart - 6c2. Getting Started with Moodle - Adding a Quiz activity with XML
2
1.3. Open a web browser and go to http://vletools.com/questions/quiz
1.4. Copy and paste your quiz questions (or upload your saved file) to
the Input field on the screen.
1.5. Click the Preview button to see what your quiz will look like. (You
may want to experiment with some of the options to see how these
options vary the output.)
Wazzas QuickStart - 6c2. Getting Started with Moodle - Adding a Quiz activity with XML
3
1.6. Click on the Download button to create a data file, known as an xml
file, which will be saved to your computer.
Wazzas QuickStart - 6c2. Getting Started with Moodle - Adding a Quiz activity with XML
4
2. Importing your quiz questions into your course
Wazzas QuickStart - 6c2. Getting Started with Moodle - Adding a Quiz activity with XML
5
2.3. Click to enter the Course where you are going to add the Quiz.
2.5. Click on the Add an activity menu and choose the Quiz option.
2.6. Give the quiz a name, and provide a description of the quiz. (The
description is optional)
Wazzas QuickStart - 6c2. Getting Started with Moodle - Adding a Quiz activity with XML
6
2.7. There are a number of options for the Quiz activity - Attempts
allowed, penalties, etc.
2.9. You will see that No questions have been added yet.
2.10. Click on the Import button, and select the Moodle XML format
option.
2.11. Scroll down to Import from file upload, and select the xml file that
was saved from the xml file conversion site.
Wazzas QuickStart - 6c2. Getting Started with Moodle - Adding a Quiz activity with XML
7
2.12. Click on the Upload this file button.
2.14. You will see a list of the questions that have been imported - your
question bank.
These are the questions that are available - they have been
imported into Moodle - but are not yet imported into your new Quiz.
Wazzas QuickStart - 6c2. Getting Started with Moodle - Adding a Quiz activity with XML
8
2.15. Click on the Quiz button, and you will see that No questions have
been added yet to your quiz.
2.16. On the right side of the window, select all the questions that you
have imported for your Quiz activity.
Wazzas QuickStart - 6c2. Getting Started with Moodle - Adding a Quiz activity with XML
9
2.18. You will see a list of the questions in your new Quiz.
2.19. You can use the up and down arrows to re-order individual
questions, if necessary. (Alternatively, click on the Show reordering
tool option at the bottom of the list of questions, using the
numbering system adjacent to each question, to set the correct
order.)
Wazzas QuickStart - 6c2. Getting Started with Moodle - Adding a Quiz activity with XML
10
2.21. Use the breadcrumbs link at the top of the screen to return to the
Course.
2.22. In the Course, click on the Quiz title, then on the Preview quiz now
button to see your Quiz.
2.23. Back in the main part of the Course, add a Label, etc to organise
your Quiz in your Course layout.
2.25. Now - log on as a test student to check out your handiwork, then
check (as a Teacher) how the students quiz results are submitted to
you.
Wazzas QuickStart - 6c2. Getting Started with Moodle - Adding a Quiz activity with XML 11