Question types: Matrix question

qtype_matrix
Maintained by Picture of Laurent Opprecht Laurent Opprecht, Picture of Nicolas Dunand Nicolas Dunand
Matrix question type.
672 sites
374 downloads
17 fans

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

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

Comments RSS

Show comments
  • Picture of Yair Spielmann
    Wed, 28 Mar 2018, 4:47 PM
    Hi,
    The function compute_final_grade() has a division by zero, therefore throwing a warning and not returning the correct grade whenever "Interactive with multiple tries" question behaviour is used.
    Should this be fixed?
    Thanks, Yair
  • Ricardo Caiado
    Tue, 3 Apr 2018, 8:35 AM
    Is there any moodle 3.4+ update?
  • Picture of Иван Недобойко
    Sat, 7 Apr 2018, 5:54 AM
    Does not work in the mobile app!!!
  • Picture of Sebastian H.
    Mon, 23 Apr 2018, 7:48 PM
    Hello Nicolas,

    will there be a 3.4 Version of your plugin?

    Best regards
    Sebastian
  • Picture of Nicolas Dunand
    Tue, 24 Apr 2018, 12:29 PM
    Hi Sebastian,

    No 3.4 version planned, but please do report if not fully compatible with Moodle 3.4.
  • Picture of Antoine MORLET
    Wed, 23 May 2018, 5:44 PM
    Hi, first of all thank you very much for your plugin.
    I would just like to point out that from the 21st line, it is no longer possible to record the answers. I am on a moodle in 3.4.
    Good continuation
  • Picture of Nicolas Dunand
    Wed, 23 May 2018, 7:48 PM
    Hi, thanks for your feedback. Yes, this is a hard-coded limit to prevent exponential complexity growth of answer processing.
  • Picture of Иван Недобойко
    Sun, 16 Sep 2018, 5:16 AM
    Hello!
    The question type does not work in the mobile app
  • Picture of Jürg Hoerner
    Mon, 5 Nov 2018, 5:33 PM
    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.

  • Picture of Issam ELGHAFFOULI
    Tue, 15 Jan 2019, 5:16 PM

    the plugin is not compatible with version 3.6.1 sad
  • Picture of Issam ELGHAFFOULI
    Thu, 17 Jan 2019, 2:04 AM
    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
  • Picture of Roger Rousseau
    Thu, 17 Jan 2019, 7:07 AM
    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
  • Picture of Nicolas Dunand
    Thu, 17 Jan 2019, 3:09 PM
    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)
  • Picture of Nicolas Dunand
    Thu, 17 Jan 2019, 3:12 PM
    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.
  • Picture of Issam ELGHAFFOULI
    Fri, 18 Jan 2019, 9:40 PM
    Thank you Nicolas for your help.
1 2 3
Please login to post comments