Question types: Combined

Maintained by Tim at Lone Pine Koala Sanctuary Tim Hunt, Picture of Phil Butcher Phil Butcher, Picture of Jamie Pratt Jamie Pratt
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)
795 sites
32 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



This plugin is part of set Open University.


Screenshot #0


Tim at Lone Pine Koala Sanctuary
Tim Hunt (Lead maintainer)
Picture of Phil Butcher
Phil Butcher: Question type designer
Picture of Jamie Pratt
Jamie Pratt: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of S. Ali
    Fri, 19 Feb 2016, 10:23 PM
    Just wondering if there's an update on the 3.0 compatible version of the Combined question type?
    We were planning to upgrade on Mon but a test upgrade shows that our quizzes with Combined questions will not work so we will need to delay it until a compatible version is available as we use it quite a lot. Hope it can be made available soon.

    Thank you.
  • Tim at Lone Pine Koala Sanctuary
    Fri, 19 Feb 2016, 10:29 PM
    The issue is that in Moodle 3.0, qtype_gapselect was added to the standard Moodle release. As part of that, the 'combinable' folder was removed. (

    I think all you need to do to make this work is to add the combinable folder back to the gapselect type.

    (The proper fix, that will take me a bit loger, is that to basically undo this change:
  • Picture of S. Ali
    Sat, 20 Feb 2016, 2:45 AM
    Hello Tim,

    Thank you Very much for the quick response and the workaround.
    I added the folder as suggested and It's fine now.

  • Tim at Lone Pine Koala Sanctuary
    Fri, 18 Mar 2016, 2:55 AM
    Finally, we have a Moodle 3.0-compatible version of this question type. Sorry it took so long.
  • Picture of S. Ali
    Fri, 18 Mar 2016, 6:51 AM
    Hello Tim,

    Thank you for the update.
    I've tried to install it but it's failing with the following error:
    [Error] Required Moodle version [2015111603]

    I have installed: 1.3 for Moodle 2.6+ [2015051000] running on Moodle 3.0.2+ (Build: 20160218)

    Kind Regards,
  • Tim at Lone Pine Koala Sanctuary
    Fri, 18 Mar 2016, 7:28 AM
    Drat! That is what you get for trying to do things in a rush before leaving work. New version pushed. Hopefully that will work now.
  • Picture of S. Ali
    Fri, 18 Mar 2016, 7:58 AM
    Thank you. Works very well now.
  • Picture of lucia liljegren
    Tue, 28 Jun 2016, 9:03 PM
    I upgraded from 2.5.xomething to 2.7.14 to 3.1 in one fell swoop yesterday. The combined questions do not display. (I can see them in the question bank, but I get a total blank screen if I try to view the question or edit it.) Tips for what to do?
  • Picture of lucia liljegren
    Wed, 29 Jun 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, 29 Jun 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, 14 Jun 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
  • Tim at Lone Pine Koala Sanctuary
    Thu, 15 Jun 2017, 1:45 AM
    Done smile
  • Picture of Stephen Parry
    Tue, 4 Jul 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, 11 Jul 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)

  • Tim at Lone Pine Koala Sanctuary
    Tue, 11 Jul 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:
1 2 3
Please login to post comments