importing Quizes in text format

importing Quizes in text format

Tony Sobottka -
回帖数:10

Hello,

We do all your quizes in multiple choice.  what would be the format for a text file if I wanted to create the quiz questions off line then import them? 

This would help my teachers and my self greatly.  We just started and online study course.  We have hundreds of questions saved in word format that can be cut and pasted into a text file if I just knew the format that would work.

Thank you

Tony Sobottka

Healing Arts Center http://www.yamamizuryu.org

 

回复Tony Sobottka

Re: importing Quizes in text format

Scott Elliott -

You can import multiple choice questions from a text file in this format:


////////////////////////////////////////////////////////////////////////////
/// MISSING WORD FORMAT
///
/// This Moodle class provides all functions necessary to import and export
/// one-correct-answer multiple choice questions in this format:
///
///    As soon as we begin to explore our body parts as infants
///    we become students of {=anatomy and physiology ~reflexology
///    ~science ~experiment}, and in a sense we remain students for life.
///
/// Each answer is separated with a tilde ~, and the correct answer is
/// prefixed with an equals sign =
///
////////////////////////////////////////////////////////////////////////////
(from comment section in missingword.php)

 

There are other alternatives, such as:  import your word documents into programs that can export them in the Blackboard format, then import them in moodle using the Blackboard Format (see http://moodle.org/mod/forum/discuss.php?d=1091) or modify custom.php to parse your text files yourself.

Hope this helps,

Scott

回复Scott Elliott

Re: importing Quizes in text format

Tony Sobottka -

Thank you SOOOOOOO very much biggrin.gif.  This will make my life easy.

 

Thank you

 

Tony

回复Tony Sobottka

Re: importing Quizes in text format

Chris Neaves -

A problem that baffles me with importing a quiz in txt format...

Here it is:

The troposphere extends to about:{ ~52 000 ft above the polar regions;
 ~35 000 ft above the tropical regions; ~20 000ft above the polar regions =26 000 ft above the polar regions}.

If I import this as a missing word format I get the error "

1. The troposphere extends to about:_____.

One of the answers should be 100%, so that it is
possible to get a full grade for this question.
Do you want to go back and fix this question?"

 If I cut and past the sample question to give an idea to the format it works fine, but any question I make it says go away...

Any ideas???

Chris

 

回复Chris Neaves

Re: importing Quizes in text format

Scott Elliott -

Upon inspecting the source, I believe the example given in the help and in the comment section at the top of missingword.php could be changed and we won't need to fix any code.  It appears that ALL answers wrong or right must start with a ~ character.  I got this to work for your example:

The troposphere extends to about:{ ~52 000 ft above the polar regions;
 ~35 000 ft above the tropical regions; ~20 000ft above the polar regions ~=26 000 ft above the polar regions}.

I'm not sure if this was intentional, but this seems to work.

Scott

 

回复Scott Elliott

Re: importing Quizes in text format

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
Please don't change the format - the code was wrong by assuming the correct answer was always the first one.

I've now fixed the code in CVS: http://moodle.org/bugs/bug.php?op=show&bugid=431
回复Martin Dougiamas

Re: importing Quizes in text format

Ger Tielemans -

I created with the MISSING WORD format a quizz where I say in the header that the person in a story ("A day in the life of Martin Moodle") has to make some choices. Then I ask the readers to mark the sentences with Yes or No if they think the person makes a choice. (I could also decide to make a variation :Yes/NO/I Don't know)

I created this format:

Martin steps out the shower and turns his computer on.                 >>>> Choice? {=Yes  ~No}
Martin runs to the kitchen, jumps over the cat and opens the frig  >>>> Choice? {~Yes =No}
The coffemachine makes a boiling noise.                                     >>>> Choice? {~Yes  =No}
Then the phone rings and Martin runs back to his desk                  >>>> Choice? {~Yes =No}

After Martin's last repair I can file in this format end get on the screen sentences like this:

 _________________________________________________________________________

  5    Martin runs to the kitchen, jumps over the cat and opens the frig. >>> Choice? _________

1 point                                                                           Answer: a. Yes
                                                                                                  b. No

 _________________________________________________________________________

Because it is a story, i made the choice not to mix the questions (still the are mixed up)
I also decided not to mix the answers, so Yes is always first (still they are mixed up)

WISH: Answers in a quiz seam always to be THE TRUTH, but if you look at the story you could dispute several yes/no answers... Would it not be nice to have the same quiz in a survey format, so you could see your answers (what is the maximal set of answers, now is six?) against the group-average?

 

 

                                           

回复Ger Tielemans

Re: importing Quizes in text format

Timothy Takemoto -

By the way, I think that i have understood

This is a question {~and this is an icorrect answer =and this is the correct answer} but what
about comments and marks.

Is there something like....

This is a question {~this an incorrect answer worth %-10 percent /with this comment
                            =this the correct answer worth %100 perscent /with this comment}
Tim

....

回复Timothy Takemoto

Re: importing Quizes in text format

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
No, not with the "missing word" format, unfortunately. That format was the result of a very specific request from someone who had thousands of questions in that format already.

I'm not sure if it will make sense to extend it to become Moodle's "native" format. As yet Moodle doesn't have a standard format that supports all question types - the import capabilities are very new and "missing word" is really an example of how to write a custom import module for a specific purpose. It would make sense to adopt an existing standard as the standard format, but though IMS QTI is the frontrunner for this I've heard it's a nightmare to actually work with.
回复Martin Dougiamas

Re: importing Quizes in text format

Ger Tielemans -

Part of improving the quality of Moodle is also improving the quality of tests. (open assignments is another subject.)

  • When I saw the first draft of QTI, I was thrilled: just draw in your favorite elo-tool a map, do some QTI-scripting and then ask the user to click with the mouse on the city they think it is the Capitol of... 
    And then export this quiz to another system and still they can point with the mouse! But then realizing how much work it was to get it in the standard-QTI-format and asking your self how much better this "pointing with the mouse" was then just a map (with marks a,b,c and d) and asking in a M.C: "what is the Capitol.. a,b,c or d).
    On that moment I was healed from QTI for the next two years at least.

    Of course, when the whole world delivers test-sets in QTI-format it becomes interesting to have a QTI-importfilter, Until that day a simple structure format is my wish.
  • Another point is that teachers are asking for other things then these boring m.c.'s..
    "Why not play the Hotpotatoes-blues inside Moodle?" Students want to taste variation in their brain-meals, is then the motivation.
    I accept this for the phase where teachers want to invite students to work with the resourses and use tests for monitoring these activities, but not for grading. (So yes please create lots of variations like the missing word, or matching or.. and yes make the design as simple as possible: the missing word is brillant in it's simplicity.)
  • Coming to grading: How good is the test YOU just created as grading-tool: How fair are your weights? Are the (Wrong) alternatives in a question not too misleading?
    How to callibrate all this, ending up with a  test with realibilty or even predicting power....
  • Everything you can describe as a set of m.c.-questions (like the missing word) can you even with "common sense" evaluate against the scores of your students, but how to check the quality of more complicated tests like a matching(words)-test?

For me the test problem has these parts:

  1. Creating m.c.-questions the most easy way AND question by question online AND with file in like this nice Missing-word-format
  2. Then organise in a database-table with a webfront the grouping and weights of questions in tests. (I think this interface-part is very nice done in PHPtest: http://www.resynthesize.com/code/phptest_info.php also the possibilty to give students debrief-information inside each question )
  3. Next point is the handling of the tests inside your Moodle (AND MAYBE ALSO in a kind of course-independent test-center)
  4. If you collect all the results of your students the next years then having a tool for question-analysis and test-callibrating against your own local population would be nice: must this become part of Moodle? Well, a simple histogram for the cumulative answers over the years for each each question would be nice, the same on test-level: the results of a test against other gradings inside a student cohort.
  5. ... But calibrating a test against studentsucces inside your local schoolsystem? I have no idea