Export to text

Export to text

by Thomas W Cowdery Jr -
Number of replies: 26
I've found two excellent Word templates for creating questions in Word and exporting them to either GIFT or MoodleXML.

But what I desperately need is a way to reverse the process.

I need to be able to export questions from a particular quiz to either plain text or Word format. Does anything like that exist?
Average of ratings: -
In reply to Thomas W Cowdery Jr

Re: Export to text

by John Isner -
First of all, you do not import questions into a Quiz. You import them into a Category. It is important to understand the difference.

You can also export questions from a Category. GIFT and Moodle XML formats are both supported. Click the Edit tab, then the Export tab. See screenshot.

Attachment export_questions.png
In reply to John Isner

Re: Export to text

by Thomas W Cowdery Jr -
Sorry! I'm a newbie and I wasn't using the right terminology.

Yes, I am aware that I can only export from a category. I've been putting all my questions for a given quiz in a separate category to help me keep things organized so I would be exporting the questions from there.

But what I am looking for is a tool that would allow me to get the questions in plain text form (or ideally MSWord). While it would be great if I could get that as I am exporting, but a more likely approach is to export to one of the forms that you mentioned, and then convert the file after I export.

I can use Moodle for quizzes, but I'm also required to have a paper copy.
In reply to Thomas W Cowdery Jr

Re: Export to text

by John Isner -
All the export formats are "plain text," so I'm not sure what you want. You can open any of the exported files in your favorite text editor (e.g., Notepad) or Word. Of course the questions aren't going to look much like the original quesitons. They'll have lots of markup, depending on the format.

You may have a tool that will convert GIFT (say) to a more human-readable format. Otherwise, if your purpose in exporting is to get a paper copy, I would say that exporting is the wrong approach. The best you can do for now is File -> Print from your browser.
In reply to John Isner

Re: Export to text

by Thomas W Cowdery Jr -
They are "plain text" in the technical sense that you can open them in a text editor. What I want is just the questions in a form that I could print out and use as a paper and pencil test. I'm required to keep a copy of the test in such a form.

In other words, I'm looking for something that can strip out all of the XML (or whatever) and just leave the questions (and in the case of MC, the foils).

In other words, I want something that will essentially do the OPPOSITE of what the Word Template does.
In reply to Thomas W Cowdery Jr

Re: Export to text

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I don't know exactly what you want, but try the export to XHTML format. It just produces a simple web form version of the quiz, but it might be what you need to get a printed copy.
In reply to Howard Miller

Re: Export to text

by John Isner -
I like it! I wasn't familiar with XHTML format. You can export as XHTML, open the file in Word, do a little editing, and you have a reasonably printable copy of your category -- as long as you use only simple question types (e.g., no CLOZE or matching questions).
In reply to John Isner

Re: Export to text

by Thomas W Cowdery Jr -

For what I am doing, that might work.  I mostly use MC, TF, short answer and essay.  I haven't used the CLOZE type, and I could easily avoid matching questions.

Since I put all of the questions from a given quiz together in a category, it might work.  It is certainly worth a try!

Thanks!

In reply to Howard Miller

Re: Export to text

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Howard,
Exporting a category to XHTML format does indeed provide an interesting version which can be printed from one's browser. However it does not give a satisfying view of the following question types: matching, multianswer. And of course it does not work for a quiz made up of questions coming from different categories. What is really needed is a facility for outputting a quiz to printed version, perhaps with 2 options: with and without correct answers. It should not be too difficult to do this, perhaps adding a tab to the Quiz view tab (in teacher mode). Any takers?
Joseph
Attachment image00.jpg
In reply to Joseph Rézeau

Re: Export to text

by Thomas W Cowdery Jr -
I know that this would be a god-send for me.  Even if it didn't do matching questions (or CLOZE), something is better than nothing. 
In reply to Joseph Rézeau

Re: Export to text

by John Isner -
Hi Joseph,
Before I posted, I checked the tracker. I know people have asked for printable quizzes (quizzes, actually, not categories) for as long as I can remember, but I could not find a tracker issue! Your facility for printing quizzes with and without an answer key would be extremely popular. It is a feature in several other online testing systems that I have used, and Moodle should have it.
In reply to Joseph Rézeau

Re: Export to text

by John Isner -
Hi again Joseph,
I did some more research in the tracker. I found three related issues:
  • MDL-10270 "It would be very nice to have the possibility to print out e.g. multiple choice tests for use in a class room." This issue is marked as a duplicate of MDL-6036
  • MDL-6036 "Student request for a print view." This is actually a request to see the questions and answers, not just the questions. This issue points to MDL-348
  • MDL-348 "Printer-friendly (more compact) layout option for quiz."
AFAIK there are no use cases for printing a category. There ARE use cases for printing quizzes, with either just the questions (you need to give a test on paper because the network has gone down or because not enough computers are available) or both questions and answers (to use as an answer key).
In reply to Joseph Rézeau

Re: Export to text

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The *plan* has always been to wrap up the XHTML format in Javascript so that you end up with one of those web based self-contained quizzes with the marking done by the javascript )ie, completely client side). Maybe next week.

It would actually not be difficult at all to write an export plugin that provided a simple text output. I guess what to do with the answers depends on what you want to do with it.
In reply to Howard Miller

Re: Export to text

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Howard > It would actually not be difficult at all to write an export plugin that provided a simple text output.

Yes, but what is needed is an export plugin to export questions from a quiz, not from a category. Do you agree?

>I guess what to do with the answers depends on what you want to do with it.

I expect what is wanted is what is usually available in other quiz software that I know of: an option for exporting/printing a quiz without the answers and another option for exporting/printing with the correct answers inserted.

At the moment the XHTML export (for a category of questions) is almost OK, except for the matching questions. And of course the cloze/multianswer question type is a bit more tricky to do.

Joseph

In reply to Joseph Rézeau

Re: Export to text

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Export of the quiz questions (as opposed to the category questions) is something that has hung around for ever. My feeling has always been that import and export are part of the questionbank system, not a quiz instance so it doesn't really make sense. However, it shouldn't be impossible to work out if you are modifying a particular quiz instance and then providing yet another tick box "export quiz questions". Let me have a think about it. It's the sort of thing that I would want Tim involved in though.
In reply to Howard Miller

Re: Export to text

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It definitely sounds like a useful feature to try and implement, especially now that we have the facility to include the category in the export file.

Because the question bank is not meant to know about the inner workings of other modules, we would need to add some extra functions to mdl/quiz/lib.php, something like

quiz_extra_export_options() - take the export form, and add some more controls to it
quiz_process_export_option() - called when the form is submitted, to return a list of questionids, or something.

(and similarly for any other modules that want to support this), and then if the export form is being shown within a module context, we would need to see if these functions exist, and if so, use them.

There are probably some details that make this slightly tricky, but it should be possible.
In reply to Joseph Rézeau

Re: Export to text

by Trường Giang Lê -
I used Quiz in Moodle 1.8.3 but neither see button print.You give help to Me neither only.
Thanks
In reply to Joseph Rézeau

Re: Export to text

by Trường Giang Lê -

Please Help me.

I Used Quiz in moodle 1.8.3 As question bank and examination question but I need to print examination questions in egress for precheck when donation compete but I am nonprintable.

In reply to Thomas W Cowdery Jr

Re: Export to text

by Barbara Braun -
Sorry, I can't help you with that question - but I am desperatly looking for the word templates you mention - could you help me on this?
THANKS!
Barbara
In reply to Barbara Braun

Re: Export to text

by Thomas W Cowdery Jr -
The first link that John Isner posted has the template that I have used to get questions INTO Moodle. It does have a minor bug in it. I've fixed that bug on my local copy, and would be happy to share how to fix it - or I could just send a zipped up copy of the fixed version.
In reply to Thomas W Cowdery Jr

I have the same problem...PLUS

by Stewart Brouillette -
I must also keep "paper" copies of all tests on hand. However, when I open up the quiz, go to the "Edit" tab, then go to
"Export", the export utility gives me a warning that there are no questions to export. Any idea what is happening? The quiz is built and I can access it and the questions are there... Any help is appreciated.
In reply to Stewart Brouillette

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Stewart Brouillette

Re: I have the same problem...PLUS

by John Isner -
First of all, you don't export a quiz, you export a question category. Is it possible that you are trying to export an empty category?
In reply to John Isner

Re: I have the same problem...PLUS

by Stewart Brouillette -

No, I'm trying to export from a category with questions in it. Additionally,the category has been used prior to this to build quizes, so I know it's working.

Not being a code developer, may I inject a request for anyone who is a coder? Build something that allows one to export a QUIZ that is already built into a TEXT format.

MOODLE is a great tool, but we have already experienced issues with students at a distance not being able to reliably access the tests due to their locale and sketchy Internet service. In two instances, their connection was lost in the middle of a quiz on MOODLE. We have to have a "Low tech" solution, one of which is to maintain a bank of "paper" quizes in MS Word that mirrors what is available in MOODLE. In those cases, I must e-mail them the quiz so they can take it and e-mail it back to me.