// Numbas version: exam_results_page_options {"name": "match text pattern part for MH", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"progress": "in-progress", "statement": "", "variables": {}, "name": "match text pattern part for MH", "metadata": {"notes": "", "licence": "Creative Commons Attribution 4.0 International", "description": ""}, "type": "question", "parts": [{"displayAnswer": "", "marks": 1, "answer": "stack[ \\-]array", "type": "patternmatch", "showCorrectAnswer": true, "prompt": "

Write \"stack array\" or \"stack-array\"

", "scripts": {}}, {"displayAnswer": "", "marks": 1, "answer": "continuous even uniform", "type": "patternmatch", "showCorrectAnswer": true, "prompt": "

Write \"continuous\", \"even\" and \"uniform\" in any order.

", "scripts": {"mark": {"order": "instead", "script": "// get the student's answer\nvar s = this.studentAnswer;\n\n// split it up into separate words\nvar words = s.split(/\\s+|(?:\\s*,\\s*)/g);\n\n// sort the words alphabetically\nwords.sort();\n\n// join the words up again\nthis.studentAnswer = words.join(' ');\n\n// apply the normal marking algorithm\nPatternMatchPart.prototype.mark.apply(this);"}}}], "showQuestionGroupNames": false, "functions": {}, "tags": [], "variable_groups": [], "rulesets": {}, "preamble": {"css": "", "js": ""}, "advice": "", "question_groups": [{"name": "", "questions": [], "pickQuestions": 0, "pickingStrategy": "all-ordered"}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}