Question types: Combined

qtype_combined
Maintained by Tim at Lone Pine Koala SanctuaryTim Hunt, Picture of Phil ButcherPhil Butcher, at the OU (Perry building)Mahmoud Kassaei
A Moodle question type which allows questions to be built up from parts that are other simpler question types (requires you to have these question types installed)
1053 sites
343 downloads
48 fans

There are working examples in eAssessment with Moodle on our OpenLearn site.

The documentation is in How to create questions in Moodle on that site.

This question types uses other question types as sub questions. It allows you to have one or more entry fields for any of these question types embedded in your question text. You must have at least one of these question types installed for this combined question type to work :

Here is an example of a question where a teacher has combined 1 variable numeric, 1 pmatch, 1 multiple response and 1 select missing word sub question in one combined question.

Example of a combined question

 

Sets

This plugin is part of set Open University.

Screenshots

Screenshot #0

Contributors

Tim at Lone Pine Koala Sanctuary
Tim Hunt (Lead maintainer)
Picture of Phil Butcher
Phil Butcher: Question type designer
at the OU (Perry building)
Mahmoud Kassaei: Developer
Picture of Jamie Pratt
Jamie Pratt: Developer
Picture of Chris Nelson
Chris Nelson: Product owner
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of lucia liljegren
    Wed, Jun 29, 2016, 1:06 AM

    I don't know if my fiddling to upgrade caused this, or if the official installation tried to declare the class twice. But someone advised me to look at debug. I get this:

    Fatal error: Cannot redeclare class qtype_combined_combinable_type_gapselect in [...] /moodle/question/type/combined/combinable/gapselect/combinable.php on line 0

    I looked and 'combinable.php' is called both by
    [...] /question/type/combined/combinable/gapselect/combinable.php and
    [...] /question/type/gapselect/combinable/combinable.php

    Would deleting the one in "combined/combinable/gapselect/combinable.php" fix the issue without also causing problems in "Select missing words"?
  • Tim at Lone Pine Koala Sanctuary
    Wed, Jun 29, 2016, 1:09 AM
    Wrong way around. In Moodle 3.x, the one in question/type/gapselect/combinable/combinable.php should not exist.
  • Picture of Stephen Parry
    Wed, Jun 14, 2017, 4:59 AM
    Hi Tim,
    Is there any chance we might get 3.2 compatible versions of the combined and other various question types please? 3.1.x is now out of support and I would really like to upgrade to 3.2 or 3.3
    Thanks
  • Tim at Lone Pine Koala Sanctuary
    Thu, Jun 15, 2017, 1:45 AM
    Done smile
  • Picture of Stephen Parry
    Tue, Jul 4, 2017, 4:44 PM
    Thanks, that's great. Any ideas what of timescales for the supporting question like variable numeric and pattern match please?
  • Picture of Louis-Philippe Baron
    Tue, Jul 11, 2017, 11:14 PM
    Hello Tim !
    First of all, thanks for this question type, that's awesome.

    I'm trying to implement the core multichoice as combined (I don't want the OU-one notation system, nor the checkboxes). No problems on where to place my files, but I'm not really sure of what I need to keep / change from the oumultiresponse / gapselect implementation, neither from combinable.php nor from renderer.php.

    Do you have some tips to implement quickly the behaviour of a core type as combinable ? (I'm trying to do it, comparing the source files of 'gapselect' with 'combinable_gapselect', but that's not the much efficient)

    Cheers,
  • Tim at Lone Pine Koala Sanctuary
    Tue, Jul 11, 2017, 11:20 PM
    More people are likely to see your question, and therefore be in a position to help, if you post in the quiz forum: https://moodle.org/mod/forum/view.php?id=737
  • Picture of rob mock
    Tue, Mar 26, 2019, 12:26 AM
    Is this the place to request adding an open-ended essay answer option to the combined question type?
    The flexibility of combined question type gets Moodle quizzes much closer to looking like the standardized tests my students are starting to see. Pure mimicking is not the goal, of course, but using my Moodle to make questions that get my students comfortable with the format is a big deal. Adding a field for a typed response would be a huge help for me.
  • Picture of For Linh
    Thu, Jun 25, 2020, 11:05 PM
    Hi Tim,
    I think you are very busy, but I need your help.
    I have effectively used your Combined plugin until now!
    I receive the error message: "Exception - Class 'qtype_multichoice' not found " when creating a new combined question. I cannot preview the old combined questions! I tested with Moodle 3.9, 3.8, then 3.7, 3.6, 3.5 and I have the same problem!
    I hope you help me to fix it!

    Thanks.

    Best Regards,

    FL
  • Tim at Lone Pine Koala Sanctuary
    Fri, Jun 26, 2020, 3:38 PM
    That is a very surprising error message. qtype_multichoice is part of standard moodle!

    Please can you turn on debugging (https://docs.moodle.org/en/Debugging) - set it to Developer level, and then copy the full error message. Then we can probably work out what the problem is. Thanks.
  • Picture of For Linh
    Fri, Jun 26, 2020, 10:13 PM
    Hi Tim,

    Thanks for your hint, and that is the full error message:
    ======
    Debug info:
    Error code: generalexceptionmessage


    Stack trace:
    line 74 of /question/type/oumultiresponse/combinable/combinable.php: Error thrown
    line 85 of /question/type/combined/combiner/forform.php: call to qtype_combined_combinable_oumultiresponse->add_form_fragment()
    line 68 of /question/type/combined/edit_combined_form.php: call to qtype_combined_combiner_for_form->form_for_subqs()
    line 205 of /question/type/edit_question_form.php: call to qtype_combined_edit_form->definition_inner()
    line 214 of /lib/formslib.php: call to question_edit_form->definition()
    line 113 of /question/type/edit_question_form.php: call to moodleform->__construct()
    line 47 of /question/type/combined/edit_combined_form.php: call to question_edit_form->__construct()
    line 217 of /question/type/questiontypebase.php: call to qtype_combined_edit_form->__construct()
    line 202 of /question/question.php: call to question_type->create_editing_form()

    Output buffer:
    Invalid get_string() identifier: 'shuffle' or component 'qtype_combined'. Perhaps you are missing $string['shuffle'] = ''; in /home/lomathin/test.lomath.in/question/type/combined/lang/en/qtype_combined.php?
    • line 353 of /lib/classes/string_manager_standard.php: call to debugging()
    • line 7387 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
    • line 69 of /question/type/oumultiresponse/combinable/combinable.php: call to get_string()
    • line 85 of /question/type/combined/combiner/forform.php: call to qtype_combined_combinable_oumultiresponse->add_form_fragment()
    • line 68 of /question/type/combined/edit_combined_form.php: call to qtype_combined_combiner_for_form->form_for_subqs()
    • line 205 of /question/type/edit_question_form.php: call to qtype_combined_edit_form->definition_inner()
    • line 214 of /lib/formslib.php: call to question_edit_form->definition()
    • line 113 of /question/type/edit_question_form.php: call to moodleform->__construct()
    • line 47 of /question/type/combined/edit_combined_form.php: call to question_edit_form->__construct()
    • line 217 of /question/type/questiontypebase.php: call to qtype_combined_edit_form->__construct()
    • line 202 of /question/question.php: call to question_type->create_editing_form()
    =======

    Best Regards,

    FL


  • Tim at Lone Pine Koala Sanctuary
    Fri, Jun 26, 2020, 11:17 PM
    Oh! I think I see what has happened.

    I got half way through checking that my plugins work with Moodle 3.9, which means that I have published the latest version of qtype_oumultiresponse, but not yet the latest qtype_combined.

    And I did not realise that the new mutli-choice / old combined is a broken combination. I am working on pushing a new version now. I just need to get the automated tests to pass.
  • Tim at Lone Pine Koala Sanctuary
    Sat, Jun 27, 2020, 12:03 AM
    OK, new version published. I hope that solves your problem.

    Sorry for the inconvenience.
  • Picture of For Linh
    Sat, Jun 27, 2020, 8:02 PM
    Wow!
    What an expert!
    It works, Tim!
    Thanks for your profession and enthusiasm!
    Best Regards,

    FL

    PS: Can you (or you know who can) help me to fix the problem in "https://moodle.org/mod/forum/discuss.php?d=402196"? Thanks.
  • Picture of Daniel De La Torre
    Tue, Oct 13, 2020, 7:32 PM
    It could be possible that this type of question could have a property for a "all or nothing" calification?
1 2 3 4
Please login to post comments