// Numbas version: exam_results_page_options {"name": "Clodagh's copy of Custom marking of a matrix entry part", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Clodagh's copy of Custom marking of a matrix entry part", "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "advice": "", "tags": [], "parts": [{"allowFractions": false, "customName": "", "unitTests": [], "adaptiveMarkingPenalty": 0, "marks": 1, "type": "matrix", "customMarkingAlgorithm": "", "variableReplacements": [], "markPerCell": false, "variableReplacementStrategy": "originalfirst", "scripts": {"mark": {"script": "// student's answer is held in this.studentAnswer\n// it's a 2d array of the strings the student wrote\n// you have to parse each cell as a number.\n\n\n// this script doesn't really do any marking - it just looks at the bottom-right cell of the student's answer\n\nvar answer = this.studentAnswer;\n\nif(answer==matrix([1,2],[3,4])) {\n this.markingComment(\"Well done!);\n this.answered = true;\n this.setCredit(1);\n} else {\n this.answered = false;\n this.setCredit(0,\"Try again!\");\n}", "order": "instead"}}, "correctAnswer": "id(2)", "showCorrectAnswer": true, "numColumns": "2", "correctAnswerFractions": false, "extendBaseMarkingAlgorithm": true, "numRows": "2", "useCustomName": false, "tolerance": 0, "prompt": "

Write a $2 \\times 2$ matrix. The feedback will show the bottom-right value.

", "showFeedbackIcon": true, "allowResize": false}], "rulesets": {}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": ""}, "functions": {}, "variables": {}, "statement": "", "variable_groups": [], "preamble": {"js": "", "css": ""}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Clodagh Carroll", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/384/"}]}