// 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": [{"functions": {}, "name": "match text pattern part for MH", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"prompt": "

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

", "marks": 1, "showCorrectAnswer": true, "displayAnswer": "", "scripts": {}, "answer": "stack[ \\-]array", "type": "patternmatch"}, {"prompt": "

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

", "marks": 1, "showCorrectAnswer": true, "displayAnswer": "", "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);"}}, "answer": "continuous even uniform", "type": "patternmatch"}], "statement": "", "variable_groups": [], "progress": "in-progress", "type": "question", "variables": {}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution 4.0 International"}, "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Marlon Arcila", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/321/"}]}]}], "contributors": [{"name": "Marlon Arcila", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/321/"}]}