Combined

Question types ::: 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)
Latest release:
1161 sites
359 downloads
51 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 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?
  • Picture of Subin Jose
    Sat, Nov 14, 2020, 10:31 AM
    Hi Tim,
    Last day i have upgraded my moodle from 3.7 to 3.10.
    And from the combined essay type sub questions i am getting the following errors from the error log. [From the student role & Non-editing-teacher role]
    [error] 14868#14868: *3617 FastCGI sent in stderr: "PHP message: Default exception handler: Exception - Access to undeclared static property: question_state::$ Debug:
    Error code: generalexceptionmessage
    * line 118 of /question/engine/states.php: Error thrown
    * line 450 of /question/engine/questionattemptstep.php: call to question_state::get()
    * line 1607 of /question/engine/questionattempt.php: call to question_attempt_step::load_from_records()
    * line 960 of /question/engine/questionusage.php: call to question_attempt::load_from_records()
    * line 481 of /question/engine/datalib.php: call to question_usage_by_activity::load_from_records()
    * line 84 of /question/engine/lib.php: call to question_engine_data_mapper->load_questions_usage_by_activity()
    * line 710 of /mod/quiz/attemptlib.php: call to question_engine::load_questions_usage_by_activity()
    * line 648 of /mod/quiz/attemptlib.php: call to quiz_attempt->load_questions()
    * line 669 of /mod/quiz/attemptlib.php: call to quiz_attempt->__construct()
    * line 679 of /mod/quiz/attemptlib.php: call to quiz...

    I know the combined 2.0 is not released for moodle 3.10 [sorry for not checking the docs before upgrade], is there anyway we can fix this error?

    Best Regards,
    SJ

  • Picture of Subin Jose
    Sat, Nov 14, 2020, 10:37 AM
    HI,
    Please not the PHP and MySQL versions for the moodle 3.10 instance is running.
    PHP Version 7.3.19
    MariaDB version 10.3.25
    Regards,
    SJ
  • Picture of Florian Leupold
    Mon, Apr 12, 2021, 7:35 PM
    First of all, thanks a lot for this great question type!
    I would just like to point out that there is a small bug when it comes to showing the results of an allornothing question. While false positives are correctly marked with a red X, false negatives (i.e. empty checkboxes that should have been checked) are left unmarked. It is thus impossible for students to see why their answer did not receive any points.
    Can you confirm this?
  • Tim at Lone Pine Koala Sanctuary
    Mon, Apr 12, 2021, 8:45 PM
    Are you talking about qtype_multichoiceset?
  • Picture of Chris Nelson
    Wed, Apr 14, 2021, 5:50 PM
    @Florian. You're looking for https://moodle.org/plugins/qtype_multichoiceset in that case wink
  • Picture of Florian Leupold
    Wed, Apr 14, 2021, 5:56 PM
    Yes, this is about qtype_multichoiceset. (Btw, the current version of that plugin yields fatal errors when reviewing quiz/question attempts, see its bug tracker.)

    Should I rather post this comment on the plugin's page?
  • Tim at Lone Pine Koala Sanctuary
    Wed, Apr 14, 2021, 6:09 PM
    Yes. This is an issue with qtype_multichoiceset.

    (This question type can be extended by other question types hooking into it. That is what qtype_multichoiceset is doing, so the issue is there, not here.)
1 2 3 4
Please login to post comments