// Numbas version: exam_results_page_options {"name": "Fractions", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "c", "d", "f", "g", "h", "s"], "name": "Fractions", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"prompt": "

[[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"notallowed": {"message": "

You have to give your answer as a fraction.

", "showStrings": true, "strings": [".", "-"], "partialCredit": 0}, "vsetrangepoints": 5, "expectedvariablenames": [], "checkingaccuracy": 0.001, "vsetrange": [0, 1], "showpreview": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "answer": "({a}*{b}-{a}-{b})/({a}*{b})", "marks": 1, "checkvariablenames": false, "checkingtype": "absdiff", "type": "jme"}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "statement": "

John spent a $\\frac{1}{\\var{a}}$ of his salary on food, a $\\frac{1}{\\var{b}}$ on clothes and saved the rest. What fraction of his salary did he save? 

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": "a*b>a+b"}, "variables": {"a": {"definition": "random(2..9)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "1/a", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(2..9 except a)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "1/b", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "g": {"definition": "a*b", "templateType": "anything", "group": "Ungrouped variables", "name": "g", "description": ""}, "f": {"definition": "a+b", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "h": {"definition": "f/g", "templateType": "anything", "group": "Ungrouped variables", "name": "h", "description": ""}, "s": {"definition": "1-h", "templateType": "anything", "group": "Ungrouped variables", "name": "s", "description": ""}}, "metadata": {"notes": "

Adding and subtractinf fractions.

", "description": "

Word problem on fractions.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Sanka Balasuriya", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/738/"}]}]}], "contributors": [{"name": "Sanka Balasuriya", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/738/"}]}