Question types: Gapfill

qtype_gapfill
Maintained by Picture of Marcus Green Marcus Green
Cloze question type with VERY simple question creation syntax. Can do drag drop, dropdowns or gapfill questions
1804 sites
1k downloads
41 fans
Moodle 2.1, 2.2, 2.3, 2.4, 2.5, 2.6

Screenshots

Screenshot #0
Screenshot #1

Contributors

Picture of Marcus Green
Marcus Green (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Freddie Gay
    Mon, 11 Dec 2017, 10:15 PM
    Hi Marcus. I think there is a a bug on app version when in adaptive mode. After you check the answers it seems it is impossible to replace them and submit them again within the same quiz attempt. I cannot at all seem to replace any answers after checking.
  • Picture of marisol castro
    Tue, 12 Dec 2017, 4:08 AM
    I am running Moodle 3.3. When I attempt to update from 1.95 to 1.96 I am getting the following error:
    Debug info: SQLState: 42000
    Error Code: 8147
    Message: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Could not create IDENTITY attribute on nullable column 'id', table 'mdl_question_gapfill_settings'.
    SQLState: 42000
    Error Code: 8111
    Message: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Cannot define PRIMARY KEY constraint on nullable column in table 'mdl_question_gapfill_settings'.
    SQLState: 42000
    Error Code: 1750
    Message: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Could not create constraint. See previous errors.

    CREATE TABLE mdl_question_gapfill_settings (
    id SMALLINT NULL IDENTITY(1,1),
    question NVARCHAR(10) COLLATE database_default NOT NULL DEFAULT '',
    itemid NVARCHAR(10) COLLATE database_default NOT NULL DEFAULT '',
    gaptext NVARCHAR(255) COLLATE database_default NOT NULL DEFAULT '',
    correctfeedback NVARCHAR(MAX) COLLATE database_default NOT NULL,
    incorrectfeedback NVARCHAR(MAX) COLLATE database_default NOT NULL,
    CONSTRAINT mdl_quesgapfsett_id_pk PRIMARY KEY (id)
    )
    Error code: ddlexecuteerror

    × Stack trace: •line 492 of \lib\dml\moodle_database.php: ddl_change_structure_exception thrown
    •line 324 of \lib\dml\sqlsrv_native_moodle_database.php: call to moodle_database->query_end()
    •line 772 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->query_end()
    •line 77 of \lib\ddl\database_manager.php: call to sqlsrv_native_moodle_database->change_database_structure()
    •line 444 of \lib\ddl\database_manager.php: call to database_manager->execute_sql_arr()
    •line 93 of \question\type\gapfill\db\upgrade.php: call to database_manager->create_table()
    •line 564 of \lib\upgradelib.php: call to xmldb_qtype_gapfill_upgrade()
    •line 1754 of \lib\upgradelib.php: call to upgrade_plugins()
    •line 699 of \admin\index.php: call to upgrade_noncore()
  • Picture of Marcus Green
    Tue, 12 Dec 2017, 4:49 AM
    Hi marisol, that looks like a bug to me and I think I know what it is. I will investigate and let you know when I have a fix. You can email me directly at marcusavgreen at gmail dot com.
  • Picture of Marcus Green
    Tue, 12 Dec 2017, 4:50 AM
    Hi Freddie, I am assuming you are referring to the mobile app version, I will investigate and get back to you.
  • Picture of Marcus Green
    Tue, 19 Dec 2017, 4:44 PM
    Hi Marisol, I have reproduced the issue that you experienced and I am working on a fix.
  • Picture of Marcus Green
    Sun, 24 Dec 2017, 5:02 PM
    I have tested Gapfill against a similar core question type with the Adaptive behaviour. It seems to work as I would expect.
    You can see a video of it here

    In the video I am using dropdowns but I get similar results when using drag and drop. The video is when
    using the Moodle desktop app which is built from the same source as the Mobile app and is running the same
    code as for mobile. I have also tested on the mobile app as well. Email me directly at marcusavgreen at gmail dot com if you want to follow up.
  • Picture of Marcus Green
    Sun, 24 Dec 2017, 5:03 PM
    Hi Freddie that last post was for you.
  • Picture of John Pap
    Fri, 12 Jan 2018, 9:02 PM
    Hi Marcus, is there a way to ignore blanks AND to have math symbols such as * % all in one answer ?
    For example I'd like to write : M = [N * 2] but I cannot put the asterisk * into the answer.
    * I know I can disable Regex but if do that, then, it will not ignore spaces.
    ** HTML also doesn't help cuz I work with asterisks for multiplication instead of "x"
    Thanks.
  • Picture of Marcus Green
    Fri, 12 Jan 2018, 9:46 PM
    I cannot think of a way of doing that. Have you considered the Formula or Algebra question types?
    https://moodle.org/plugins/pluginversions.php?plugin=qtype_formulas
    https://moodle.org/plugins/pluginversions.php?plugin=qtype_algebra
  • Picture of steve henderson
    Wed, 21 Feb 2018, 10:28 PM
    Hi Marcus
    Gapfill is amazing and I am using in Moodle 3.4 server with version 1.971. However, it seems the gapfill questions are still not supported in the Moodle Mobile app (3.4.0). I had thought the plugin was usable in the app and am sure I have used it in the app??
  • Picture of Marcus Green
    Wed, 21 Feb 2018, 10:35 PM
    Glad you like it. The mobile app has been supported since February last year and I have various demo sites I test it on. What happens when you attempt to use it with the mobile app?. Probably best to email me at marcusavgreen at gmail dot com.
  • Picture of Giovanni Fulantelli
    Sat, 17 Mar 2018, 10:32 PM
    Hi Marcus,
    I would like to be sure that the student give all the correct answers. In the example shown in the screenshot, the student can write 'lion' twice in the 'feline' column, and it get 100% mark.
    Is it possible to control this case?
    Thanks in advance
    Giovanni
  • Picture of Marcus Green
    Sat, 17 Mar 2018, 10:38 PM
    Hi Giovanni,
    This can be done using the no duplicates mode which is documented here
    https://docs.moodle.org/34/en/Gapfill_question_type#No_Duplicates_Mode
  • Picture of Giovanni Fulantelli
    Tue, 20 Mar 2018, 1:26 AM
    Thanks Marcus, It works very well!
    One more question: when I choose the dragdrop answer type, with no duplicate option, I'd be happy to see the options disappearing when I chose one and drag it in a placeholder (it doesn't matter if it's the right place or not).
    This is extremely usefull when you have a few words to be dragged, specially in the mobile app. Is it possible?
  • Picture of Marcus Green
    Sat, 2 Jun 2018, 5:04 AM
    David M can you email me directly at marcusavgreen at gmail dot com, I got the forwarded message but I cannot find a way to reply to you.
1 2 3 4 5 6 7 8 9 10 11
Please login to post comments