// Numbas version: exam_results_page_options {"name": "Work with Mixed Numbers", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Work with Mixed Numbers", "tags": [], "metadata": {"description": "

Add, subtract, multiply of divide two mixed numbers. This question has no advice at this stage.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Calculate \\[\\var{whole1} \\var[fractionNumbers]{frac1} \\var{(latexop)} \\var{whole2} \\var[fractionNumbers]{frac2} \\]

\n

Give your answer as a mixed number in simplest form.

\n

Note: to enter a fraction, say \\(\\dfrac23\\), type 2/3

", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"whole1": {"name": "whole1", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "whole2": {"name": "whole2", "group": "Ungrouped variables", "definition": "random(1..10)", "description": "", "templateType": "anything", "can_override": false}, "n1": {"name": "n1", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "n2": {"name": "n2", "group": "Ungrouped variables", "definition": "random(1..9)", "description": "", "templateType": "anything", "can_override": false}, "d2": {"name": "d2", "group": "Ungrouped variables", "definition": "random(n2..10)", "description": "", "templateType": "anything", "can_override": false}, "frac1": {"name": "frac1", "group": "Ungrouped variables", "definition": "n1/d1", "description": "", "templateType": "anything", "can_override": false}, "frac2": {"name": "frac2", "group": "Ungrouped variables", "definition": "n2/d2", "description": "", "templateType": "anything", "can_override": false}, "d1": {"name": "d1", "group": "Ungrouped variables", "definition": "random(n1..10)", "description": "", "templateType": "anything", "can_override": false}, "opidx": {"name": "opidx", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "

0 = +, 1 = -, 2 = *, 3 = /

", "templateType": "anything", "can_override": false}, "latexop": {"name": "latexop", "group": "Ungrouped variables", "definition": "latex(['+','-','\\\\times','\\\\div'][opidx])", "description": "", "templateType": "anything", "can_override": false}, "ans": {"name": "ans", "group": "Ungrouped variables", "definition": "eval(expression(\n \"(\" + whole1 + \"+\" + frac1 + \")\" +\n [\"+\",\"-\",\"*\",\"/\"][opidx] +\n \"(\"+ whole2 + \"+\" + frac2 + \")\"\n))", "description": "", "templateType": "anything", "can_override": false}, "answhole": {"name": "answhole", "group": "Ungrouped variables", "definition": "floor(ans)", "description": "", "templateType": "anything", "can_override": false}, "ansfrac": {"name": "ansfrac", "group": "Ungrouped variables", "definition": "ans-answhole", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["whole1", "whole2", "n1", "n2", "d1", "d2", "frac1", "frac2", "opidx", "latexop", "ans", "answhole", "ansfrac"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Write the answer as a mixed numeral, with the whole number in the first box, and the fractional part in the second box.

\n

Answer = [[0]][[1]]

", "gaps": [{"type": "numberentry", "useCustomName": true, "customName": "whole", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{answhole}", "maxValue": "{answhole}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "fraction", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{ansfrac}", "maxValue": "{ansfrac}", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": true, "mustBeReducedPC": "50", "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}, {"name": "Alissa Gerber", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/9861/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}, {"name": "Alissa Gerber", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/9861/"}]}