// Numbas version: exam_results_page_options {"name": "Merryn's copy of Fraction of a pizza remaining (4)", "extensions": ["written-number"], "custom_part_types": [], "resources": [["question-resources/pizza1.png", "/srv/numbas/media/question-resources/pizza1.png"], ["question-resources/pizza2.png", "/srv/numbas/media/question-resources/pizza2.png"], ["question-resources/pizza3.png", "/srv/numbas/media/question-resources/pizza3.png"], ["question-resources/pizza4.png", "/srv/numbas/media/question-resources/pizza4.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Merryn's copy of Fraction of a pizza remaining (4)", "tags": ["LANTITE"], "metadata": {"description": "
NC NA Non-calculator and Number and Algebra strand. This number assesses students' ability to add and subtract very simple fractions. Students need two add two fractions (possibly mixed numbers) involving quarters and/or halves, then subtract their answer from a whole number. The answer must be entered in simplest form and will always be less than one.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "Do not use a calculator for this question.
\nA parent bought their two children {written_number(number)} mini-pizzas at the school fair. The older child {frac1} and the younger child {frac2}.
", "advice": "{advice}
\nThe diagrams below show the whole mini-pizzas, the amount eaten and the amount left.
\n{image('resources/question-resources/'+image,30)}
", "rulesets": {}, "extensions": ["written-number"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"scenarios": {"name": "scenarios", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n{\\n\\\"num\\\":2,\\n\\\"f1\\\":\\\"ate three quarters of a mini-pizza\\\",\\n\\\"f2\\\":\\\"ate half a mini-pizza\\\",\\n\\\"ans\\\":\\\"3/4\\\",\\n\\\"img\\\":\\\"pizza4.png\\\",\\n\\\"adv\\\":\\\"First we need to add $\\\\\\\\frac{3}{4}$ and $\\\\\\\\frac{1}{2}$.The list of all pizza scenarios, each with the number of pizzas, fraction each child ate, answer and advice (worked solution).
", "templateType": "json", "can_override": false}, "scenario": {"name": "scenario", "group": "Ungrouped variables", "definition": "random(scenarios)", "description": "The randomly selected pizza scenario, with the number of pizzas, fraction each child ate, answer and advice (worked solution).
", "templateType": "anything", "can_override": false}, "number": {"name": "number", "group": "Ungrouped variables", "definition": "scenario[\"num\"]", "description": "The number of pizzas that the parent bought.
", "templateType": "anything", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "scenario[\"ans\"]", "description": "The correct answer - the fraction of pizza remaining.
", "templateType": "anything", "can_override": false}, "advice": {"name": "advice", "group": "Ungrouped variables", "definition": "scenario[\"adv\"]", "description": "The advice (worked solution) for the randomly selected question.
", "templateType": "anything", "can_override": false}, "frac1": {"name": "frac1", "group": "Ungrouped variables", "definition": "scenario[\"f1\"]", "description": "The fraction of a pizza (or pizzas) that the older child ate.
", "templateType": "anything", "can_override": false}, "frac2": {"name": "frac2", "group": "Ungrouped variables", "definition": "scenario[\"f2\"]", "description": "The fraction of a pizza (or pizzas) that the younger child ate.
", "templateType": "anything", "can_override": false}, "image": {"name": "image", "group": "Ungrouped variables", "definition": "scenario[\"img\"]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["scenarios", "scenario", "number", "frac1", "frac2", "answer", "advice", "image"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "What fraction of a pizza remained altogether? Enter your answer in simplest form using the / key.
", "answer": "{answer}", "displayAnswer": "{answer}", "matchMode": "regex"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}, {"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}