Posted by dewoller on September 13, 2009 at 7:49am
Hi everyone.
I want to use drupal quizzes to implement Cloze functionality, that is, associating a group of questions with a passage of text, and then having the ability to put several of these question groups into a single quiz. A question group could be currently implemented as a single quiz, but I cannot see how to group quizzes. How would you approach this problem?
- Is feasible to have meta-quiz functionality wiithin the current quiz type, so that a quiz can be 1 or more questions OR quizzes? What would be the difficulties with this approach?
- Alternatively, is it better to write a metaquiz module?
- Which one would fit into the philosophy of the current code?
I am reasonably proficient in PHP, and am very motivated to implement this feature.
Thanks
Dennis

Comments
Only quiz directions
Hia, there are no advanced grouping features for quiz I'm afraid, so I think the closest you would get would be to use the Quiz directions question type, add your text passage in that one, and let the questions for that "group" follow.
..for grouping several quizzes this probably won't work but have you tried adding several quizzes after wach other in a book? :)
implementing Cloze
If you really want to group quizzes, you might do well with a CCK content type that aggregates them or the 'collection' module. It would take some tailoring to smooth out the student's experience.
If you're very motivated to implement Cloze functionality, the best path may be to write a new question type. It's pretty easy using the abstract classes we've made. There have been several requests for Cloze functionality and you would get lots of feedback and maybe even help coding.
http://educoder.org/
http://openeducationresearch.org/
Cloze
the ClosedQuestion module (talked about here: http://groups.drupal.org/node/22957) does implement Cloze functionality with the fillblanks question type, but is currently not Quiz-compatible, and lacks a question editor and scoring. If you mainly want to use questions for training, with lots of feedback, and not for testing, then it might be useful to you.
Possible Solution
I have created a basic feature to attach questions to passages using node reference, which may solve your problem here. The major caveat is that it requires the normal question type to be overriden, so the feature overrides the normal multiple choice question. The same functionality can be extended by adding the passage field to any cck question type, so integration into various quiz questions is fairly straightforward. I did not feel the inclusion of a completely new question type was warranted, as the use cases vary so much. Nevertheless, this is my first contribution to the drupal community, so I am open to any ideas /requests for improvement.