Gapfill

Question types ::: qtype_gapfill
Maintained by Marcus Green
Cloze (fill in the blanks) question type with VERY simple question creation syntax. Can do drag drop, dropdowns or gapfill questions
Latest release:
4179 sites
1k downloads
109 fans
Current versions available: 11

As discussed in the Moodle Forum

https://moodle.org/mod/forum/discuss.php?d=203802

Contribute translations for other languages

For custom development and consultancy contact Moodle Partner Catalyst EU (https://www.catalyst-eu.net/).


For any questions please post here
https://github.com/marcusgreen/moodle-qtype_gapfill/issues

Screenshots

Screenshot #0
Screenshot #1

Contributors

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

Comments RSS

Comments

  • Freddie Gay
    Wed, 14 Dec 2016, 11:09 AM
    Any concrete plans for making compatible with Moodle for Mobile app?
  • Marcus Green
    Thu, 15 Dec 2016, 3:03 AM
    Hi Freddie, the short answer is no and you can read a longer answer here
    https://github.com/marcusgreen/moodle-qtype_gapfill/wiki/Mobile-Testing
  • Dave Foord
    Thu, 5 Jan 2017, 10:24 PM
    I have just noticed a problem across multiple Moodle's (which are indpendent of each other) that I work on where, for the gapfill questions that I have created, in the Combined Feedback area, any feedback that was present for 'For any correct response' - has now been made blank. Do you have any idea what would have caused this, and more to the point a solution?

    Thanks in advance.
  • Marcus Green
    Fri, 6 Jan 2017, 8:41 AM
    Hi Dave, the short answer is no, but I have emailed you directly for more information.
  • Chris Kenniburg
    Tue, 21 Feb 2017, 11:40 PM
    Hello Marcus, Longtime user of your awesome questiontype! I found an issue with the current version. We updated to the latest version today and I discovered an issue with your CSS which left an open :focus selector. Here is the fixed CSS for styles.css starting at line 12 ========
    /* glow a little around the border */
    .que.gapfill input.droptarget:hover, .que.gapfill input.droptarget:focus {
    border: 1px solid #7bc1f7;
    box-shadow: 0px 0px 8px #7bc1f7;
    -moz-box-shadow: 0px 0px 8px #7bc1f7;
    -webkit-box-shadow: 0px 0px 8px #7bc1f7;
    }

    Without ( .que.gapfill input.droptarget:focus ) that it was putting glow all over my site! currently you have a comma and then :focus { which puts your glow everywhere that has focus.

    Chris
  • Marcus Green
    Tue, 21 Feb 2017, 11:44 PM
    Thanks Chris, I will look into that
  • Boris Malysh
    Tue, 28 Mar 2017, 12:44 AM
    Hello, Marcus! First I want to thank you for the plugin, it's really great.
    But I have an issue with it. And I hope you can help me. So here's the situation:
    I'm using a series of gapfill questions (drag & drop mode) in a quiz with immediate feedback. This way the learner can see feedback after each question and adjust, improving his/her performance ot he way. But after having hit the first "Check" button, the learner can't move any other choices (the words given to fill in the gaps). I've tested it on Chrome, on Mobile Chrome and on Microsoft Edge, but got the same result.
    If there's a cure for it I would apreciate it very much!
    If you need more details, please ask.
    Looking forward to hearing from you, and again thanks for the plugin!
  • Marcus Green
    Tue, 28 Mar 2017, 5:33 AM
    With multiple attempts/instant feedback and hints you will see feedback and a "Try again" button when you get an incorrect answer. You can experiment with it on this web site questiontype.uk/mdl Gapfill course (username and password are given). The question with the picture of the cat illustrates this. If that doesn't clarify things, export a few of your questions in xml format with a description of your setup and I will go over the steps on one of my machines. Let me know how it goes and you can email me at marcusavgreen at gmail dot com.
  • Marcus Green
    Tue, 4 Apr 2017, 5:44 PM
    Hi Boris, I appear to have received your last message again (the one from 27 Mar) again. I am assuming that was a mistake, if not please either post here again or email me directly.
  • Boris Malysh
    Tue, 4 Apr 2017, 6:23 PM
    Great to hear from you! I haven't seen any notifications of your message. So, I'll send you an email with description, screenshots and exported questions.
    THANK you so much for your attention!
  • Tiffany Morgan
    Wed, 15 Nov 2017, 5:11 AM
    I'm wondering if it is possible to have answers that earn partial credit, so one answer that is the best and earns all points, but one answer that is partially correct and earns a percent of the points?
    Example, you might ask the student to select a healthy snack option and in the cloze question type you could write {1:MULTICHOICE:%50%Orange Juice~%50%Apple Juice~%100%Strawberries~%0%soda} And the result is the student earns half points possible if they choose orange juice or apple choice, all points possible if they choose strawberries, and zero points if they choose soda.
    Thanks!
  • Marcus Green
    Wed, 15 Nov 2017, 6:06 AM
    Thanks for the feedback Tiffany. The question type is limited to 1 mark per gap in order to keep the syntax as simple as possible. The Moodle core Cloze question type features some complex scoring capability in the manner you describe. I have been working on a new feature to allow per-gap feedback without requiring complex syntax. You can see an illustration here
  • Tiffany Morgan
    Wed, 15 Nov 2017, 6:10 AM
    Thanks Marcus I appreciate the quick feedback--that information is helpful!
  • 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.
  • 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()
Please login to post comments