I want to implement the matching and fill-in-the-blank question type, how should i start ?

Indeed, I am thinking either I will implement all the question type in hot potatoes from scratch or I will write a "translator" to make all the hot potatoes question quiz module compatible. Because the Quiz-making interface and documentation of hot potatoes is good. It will be great if we could just use it.

Comments

mbutcher’s picture

Version: 5.x-2.0-rc1 » 6.x-3.x-dev

The 6.x-3.0 branch is currently open for development, so please feel free to write some modules and begin submitting patches.

I have just checked in a new module (long_answer) that has at least decent inline docs. I have also checked in DEVELOPER.txt, which lists the hooks and theme functions that a new module needs. That file is in progress. As I find new hooks or themes, I add them.

The multichoice module is also a good starting point, though because of its support for multiple answers it is quite complex.

I'd be thrilled to see fill-in-the-blank and matching support finally rolled into Quiz.

On hot potatoes, I think an importer would be great. However, I wouldn't want to create any code that made it *necessary* for Quiz users to install and use hot potatoes in order to compose quiz questions.

On the technical side... I'm trying not to make major changes to the main quiz.module unless I really have to. Version 3.0 will introduce a new hook (hook_quiz_question_info()) so that modules can provide information about their question types. But otherwise, I am trying to keep it to bug fixes. If you end up needing to patch one of the quiz.* files, just make sure you give me a clear description of what the patch accomplishes and why.

Looking forward to seeing some patches!

summit’s picture

Subscribing, very interested in fill-in-the-blank quiz option.
I very much would like the possibility to have the choice between: multiple choice with every answer having its own points, survey questions, multiple choice and fill-in-the-blank.
This way quiz is a great module for all sort of questionares and quizes! great!

Couldn't the http://drupal.org/project/reptag module be a good starting point for fill-in-the-blank quiz submodule?

greetings,
Martijn

B747’s picture

I would SO love this feature to be implemented. Is there any news on its progress or even an ETA, please?

summit’s picture

Hi Matt,

First of all a very great 2009 for you!
In particular that the quiz module may be a great success.
Speaking of this..any progress in the different question types please?
Would love to test the fill in the blank for you.

Thanks a lot in advance for all your great work.
Greetings,
Martijn

mimhakkuh’s picture

Subscribing

mbutcher’s picture

Where we stand on this issue:

I have added a new module called "quiz_question" which defines a reusable OO interface for building additional question types. So far, I have implemented three types using this module:

* True/false
* Long answer (re-implemented)
* Quiz directions

If you are interested in either writing new types or porting multichoice to the new framework, you might want to start by reading through the true/false type.

Next on my list is fill-in-the-blank. I just need to carve out a small bit of time to write it.

Matt

elijah lynn’s picture

I very much would like the possibility to have the choice between: multiple choice with every answer having its own points, survey questions, multiple choice and fill-in-the-blank.

I agree with Summit, it would be nice to have each answer having its own points. That way if a person got 3 of 4 correct answers out of 7 possible then they could get .75 (or 75%) of the point instead of 0 points (or 0%) yet they would also not get the full 1 point (or 100%) of the question.

It would also be nice to be able to assign a question a numeric value or make its value worth a certain percentage of the test. That way you could make it so if a person got a crucial question wrong they would effectively fail the test.

mbutcher’s picture

So here's the deal...

The new Quiz Question module provides the tools for variable scoring (essentially question weighting) as suggested here. But multichoice is not ported to the new framework, and it would take considerable effort to do so.

If anyone would like to step in and help on this, it'd be welcome. Otherwise, moving multichoice to the new framework will likely be delayed until Quiz 4 (which, as of yet, does not have a timeline or a feature list).

Matt

sivaji_ganesh_jojodae’s picture

Status: Active » Fixed

Thanks for your interest. matching and fill-in-the-blank (short answer) were available in quiz 3.x and higher. Marking this as fixed.

Status: Fixed » Closed (fixed)
Issue tags: -fill-in-the-blank, -question weight

Automatically closed -- issue fixed for 2 weeks with no activity.