Matrix question

Question types ::: qtype_matrix
Maintained by Laurent Opprecht, Nicolas Dunand
Matrix question type.
Latest release:
1158 sites
379 downloads
36 fans
Current versions available: 3

Matrix question type. Adds support for k' grading as well as a streamlined user interface.

This question type allows the teacher to define the rows and columns that make up a matrix. Students can select either multiple or single answers per row, depending on how the question has been configured. Each row receives a grade defined by one of the grading methods. The final grade for the question is an average of their grades for each of the rows.

Screenshots

Screenshot #0

Contributors

Laurent Opprecht (Lead maintainer)
Nicolas Dunand: Developper
Please login to view contributors details and/or to contact them

Comments RSS

Vis kommentarer
  • sab. 16. sep. 2018, 05:16
    Hello!
    The question type does not work in the mobile app
  • ata. 5. nov. 2018, 17:33
    Hi thanks for this question type. It works usually fine. If I like to make more columns are not well visible on the right side in edit mode.

  • mar. 15. jan. 2019, 17:16

    the plugin is not compatible with version 3.6.1 trist
  • sis. 17. jan. 2019, 02:04
    I already had version 3.0 and when I downloaded the latest version of moodle 3.6 the plugin was not compatible knowing that I have a lot of exercise that contains this type of question, it displays the following error:

    Debug info: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'rows
    INNER JOIN mdl_question_matrix ' at line 4
    SELECT weights.*
    FROM mdl_question_matrix_weights AS weights
    WHERE
    rowid IN (SELECT rows.id FROM mdl_question_matrix_rows AS rows
    INNER JOIN mdl_question_matrix AS matrix ON rows.matrixid = matrix.id
    WHERE matrix.questionid = 454)
    OR

    colid IN (SELECT cols.id FROM mdl_question_matrix_cols AS cols
    INNER JOIN mdl_question_matrix AS matrix ON cols.matrixid = matrix.id
    WHERE matrix.questionid = 454)

    [array (
    )]
    Error code: dmlreadexception
    Stack trace:

    line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
    line 1245 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
    line 286 of /question/type/matrix/libs/question_matrix_store.php: call to mysqli_native_moodle_database->get_records_sql()
    line 145 of /question/type/matrix/questiontype.php: call to question_matrix_store->get_matrix_weights_by_question_id()
    line 106 of /question/type/matrix/questiontype.php: call to qtype_matrix::retrieve_matrix()
    line 931 of /lib/questionlib.php: call to qtype_matrix->get_question_options()
    line 1000 of /lib/questionlib.php: call to _tidy_question()
    line 164 of /mod/quiz/attemptlib.php: call to get_question_options()
    line 169 of /mod/quiz/locallib.php: call to quiz->load_questions()
    line 2403 of /mod/quiz/locallib.php: call to quiz_start_new_attempt()
    line 111 of /mod/quiz/startattempt.php: call to quiz_prepare_and_start_new_attempt()

    Help me please
  • sis. 17. jan. 2019, 07:07
    Hi,
    I work with 3.4, since last update of the qtype_matrix plugin, i experience some troubles, as no Matrix/Kprime Kprime can be read, and i get the folowing message " Erreur de programmation détectée. Ceci doit être corrigé par un programmeur : This behaviour (interactivecountback) cannot work with this question (qtype_missingtype_question)"
    Is that a known error ?
    Thanks
  • sis. 17. jan. 2019, 15:09
    Issam,
    This is an incompatibility with MariaDB, which has been fixed in today's release: 3.5.2 for Moodle 2.7-3.6 (Build: 2018050702)
  • sis. 17. jan. 2019, 15:12
    Hi Roger,
    Could you open an issue on the bug tracker for the plugin? I'll have to look at it more closely, but basically it seems this question type does not support (yet) the 'interactivecountback' behaviour, which is set in your quiz activity details.
  • tal. 18. jan. 2019, 21:40
    Thank you Nicolas for your help.
  • mar. 14. maj. 2019, 21:13
    Problem: Export works well, if reimport question with a matrix question the following error on postgres:

    Debug info: ERROR: null value in column "grademethod" violates not-null constraint
    DETAIL: Failing row contains (116, 26258, null, null, 0, 1, matrix).
    INSERT INTO mdl_question_matrix (questionid,multiple,grademethod,use_dnd_ui,shuffleanswers,renderer) VALUES($1,$2,$3,$4,$5,$6) RETURNING id
    [array (
    'questionid' => 26258,
    'multiple' => NULL,
    'grademethod' => NULL,
    'use_dnd_ui' => '0',
    'shuffleanswers' => '1',
    'renderer' => 'matrix',
    )]
    Error code: dmlwriteexception
    Stack trace:
    *
    line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
    *
    line 248 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
    *
    line 969 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
    *
    line 1017 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->insert_record_raw()
    *
    line 57 of /question/type/matrix/libs/question_matrix_store.php: call to pgsql_native_moodle_database->insert_record()
    *
    line 210 of /question/type/matrix/questiontype.php: call to question_matrix_store->insert_matrix()
    *
    line 456 of /question/format.php: call to qtype_matrix->save_question_options()
    *
    line 123 of /question/import.php: call to qformat_default->importprocess()

  • arf. 21. sep. 2019, 15:45
    Mr. Dunand
    I am using this question type in Moodle 3.7 and I have some issues with the feedback. First I typed the feedback for every option and when I save the question, the already written feedback just disappeared, only one of the options saved the feedback. Also, once I used the question preview, and I sent the answers in order to see the feedback, it was not shown at all..
    How can I fix this issue?
  • tal. 18. okt. 2019, 18:21
    Does the plugin support Multilanguage V2 support? The {mlang} are rendered as such. Any plan to integrate it?
  • Al
    sab. 24. jan. 2021, 06:03
    Is there any chance you make the plugin so that when you update moodle it automatically downloads the plugin as part of the upgrade? This would save so much time as currently when you upgrade it just says, "Additional Missing from disk!". Thank you so much.
  • ata. 1. feb. 2021, 15:37
    Hello Al, I think this is not doable within the plugin itself, but only depends on how to process with the upgrade. All your other third-party plugins should behave in the same way. As detailed in https://docs.moodle.org/310/en/Upgrading#Install_the_new_Moodle_software , "if you had installed any plugins on your site you should add them to the new code tree".
  • mar. 15. mar. 2022, 21:44
    Hello!
    Can Combine Feedback be made into a box like the General Feedback box? We have information that we use in quizzes that requires the Combine Feedback and General Feedback to be separate. Using the "Feedback" section next to the answer options provided poses an issue if we shuffle the answer options and/or if we have a large amount of information it doesn't give a final look we are happy with.
  • sab. 5. jun. 2022, 00:43
    Hi,

    Thanks for this useful plugin.

    I was wondering if there are possibilities to get access to an overview of all the answers of all the students to a specific question.

    I didn't find such a possibility in the stats section of the test.

    If such a possibility doesn't exist, is someone aware of a SQL request that can provide such an overview through a configurable report ?

    Thanks for the input


1 2 3
Please login to post comments