// Numbas version: exam_results_page_options {"name": "Mark only a captured subexpression of student's answer", "extensions": ["eukleides", "random_person", "quantities"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"tags": [], "parts": [{"type": "jme", "checkingAccuracy": 0.001, "customName": "", "scripts": {}, "checkVariableNames": false, "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "vsetRange": [0, 1], "failureRate": 1, "variableReplacements": [], "answer": "y=x^2", "checkingType": "absdiff", "showPreview": true, "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "unitTests": [], "prompt": "

Rearrange $x=\\sqrt{y}$ to obtain a formula for $y$.

", "showFeedbackIcon": true, "useCustomName": false, "marks": 1, "mustmatchpattern": {"partialCredit": 0, "pattern": "y=?;rhs", "nameToCompare": "rhs", "message": "Your answer must be an equation of the form $y = \\ldots$."}, "valuegenerators": [{"name": "x", "value": ""}, {"name": "y", "value": ""}], "vsetRangePoints": 5}, {"type": "jme", "checkingAccuracy": 0.001, "customName": "", "scripts": {}, "checkVariableNames": false, "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "vsetRange": [0, 1], "failureRate": 1, "variableReplacements": [], "answer": "f(x)=x^2", "checkingType": "absdiff", "showPreview": true, "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "unitTests": [], "prompt": "

Here's the definition of a function which negates $x$:

\n

\\[ f(x) = -x \\]

\n

Write the definition of a function which squares $x$.

", "showFeedbackIcon": true, "useCustomName": false, "marks": 1, "mustmatchpattern": {"partialCredit": 0, "pattern": "m_func(?,[x]) = ?;def", "nameToCompare": "def", "message": "Your answer must be in the form $f(x) = \\ldots$"}, "valuegenerators": [{"name": "x", "value": ""}], "vsetRangePoints": 5}, {"type": "jme", "checkingAccuracy": 0.001, "customName": "", "scripts": {}, "checkVariableNames": false, "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "vsetRange": [0, 1], "failureRate": 1, "variableReplacements": [], "answer": "x>4", "checkingType": "absdiff", "showPreview": true, "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "unitTests": [], "prompt": "

Rearrange $2x+4>8+x$ to obtain an inequality for $x$.

", "showFeedbackIcon": true, "useCustomName": false, "marks": 1, "mustmatchpattern": {"partialCredit": 0, "pattern": "x>?;r", "nameToCompare": "r", "message": "Your answer must be of the form $x>\\ldots$."}, "valuegenerators": [{"name": "x", "value": ""}], "vsetRangePoints": 5}], "extensions": ["eukleides", "quantities", "random_person"], "advice": "", "functions": {}, "name": "Mark only a captured subexpression of student's answer", "variable_groups": [], "statement": "", "ungrouped_variables": ["ex", "m", "q"], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "This question contains several mathematical expression parts which only compare part of the student's answer with the corresponding part of the expected answer, because the expression can't be evaluated as a whole.
"}, "rulesets": {}, "variables": {"ex": {"definition": "expression(\"x+2\")", "templateType": "anything", "name": "ex", "group": "Ungrouped variables", "description": ""}, "q": {"definition": "m[\"groups\"][\"y\"]", "templateType": "anything", "name": "q", "group": "Ungrouped variables", "description": ""}, "m": {"definition": "match(ex,\"?;x+?;y\")", "templateType": "anything", "name": "m", "group": "Ungrouped variables", "description": ""}}, "preamble": {"js": "", "css": ""}, "variablesTest": {"maxRuns": 100, "condition": ""}, "type": "question", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}, {"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}