// Numbas version: exam_results_page_options {"name": "Fractions of amounts", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Fractions of amounts", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Simplify fully the following fractions.

", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"students": {"name": "students", "group": "Part d) variables", "definition": "multiplier*random(20..25)", "description": "", "templateType": "anything", "can_override": false}, "multiplier": {"name": "multiplier", "group": "Part d) variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "vegans": {"name": "vegans", "group": "Part d) variables", "definition": "multiplier*random([2,4])", "description": "", "templateType": "anything", "can_override": false}, "coeliacs": {"name": "coeliacs", "group": "Part d) variables", "definition": "multiplier*random([1,3])", "description": "", "templateType": "anything", "can_override": false}, "dietary": {"name": "dietary", "group": "Part d) variables", "definition": "vegans+coeliacs", "description": "", "templateType": "anything", "can_override": false}, "non_dietary": {"name": "non_dietary", "group": "Part d) variables", "definition": "students-dietary", "description": "", "templateType": "anything", "can_override": false}, "fraction": {"name": "fraction", "group": "Part d) variables", "definition": "non_dietary/students", "description": "", "templateType": "anything", "can_override": false}, "fabrics": {"name": "fabrics", "group": "Part e) variables", "definition": "multiplier2*upper_bound*2", "description": "", "templateType": "anything", "can_override": false}, "multiplier2": {"name": "multiplier2", "group": "Part e) variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "num1": {"name": "num1", "group": "Part e) variables", "definition": "multiplier2*random(1..upper_bound)", "description": "", "templateType": "anything", "can_override": false}, "upper_bound": {"name": "upper_bound", "group": "Part e) variables", "definition": "random(5..13)", "description": "", "templateType": "anything", "can_override": false}, "num2": {"name": "num2", "group": "Part e) variables", "definition": "multiplier2*random(1..upper_bound)", "description": "", "templateType": "anything", "can_override": false}, "num3": {"name": "num3", "group": "Part e) variables", "definition": "fabrics-num1-num2", "description": "", "templateType": "anything", "can_override": false}, "colour1": {"name": "colour1", "group": "Part e) variables", "definition": "random(\"red\",\"purple\",\"blue\")", "description": "", "templateType": "anything", "can_override": false}, "colour2": {"name": "colour2", "group": "Part e) variables", "definition": "random(\"green\",\"orange\",\"black\")", "description": "", "templateType": "anything", "can_override": false}, "colour3": {"name": "colour3", "group": "Part e) variables", "definition": "random(\"yellow\",\"white\",\"pink\")", "description": "", "templateType": "anything", "can_override": false}, "random_colour": {"name": "random_colour", "group": "Part e) variables", "definition": "random(colours)", "description": "", "templateType": "anything", "can_override": false}, "colours": {"name": "colours", "group": "Part e) variables", "definition": "[colour1,colour2,colour3]", "description": "", "templateType": "anything", "can_override": false}, "which_colour": {"name": "which_colour", "group": "Part e) variables", "definition": "indices(colours,random_colour)", "description": "", "templateType": "anything", "can_override": false}, "numbers": {"name": "numbers", "group": "Part e) variables", "definition": "[num1,num2,num3]", "description": "", "templateType": "anything", "can_override": false}, "which_number": {"name": "which_number", "group": "Part e) variables", "definition": "numbers[which_colour[0]]", "description": "", "templateType": "anything", "can_override": false}, "fraction2": {"name": "fraction2", "group": "Part e) variables", "definition": "which_number/fabrics", "description": "", "templateType": "anything", "can_override": false}, "records": {"name": "records", "group": "Part c) variables", "definition": "multiplier3*upper_bound2*2", "description": "", "templateType": "anything", "can_override": false}, "multiplier3": {"name": "multiplier3", "group": "Part c) variables", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "upper_bound2": {"name": "upper_bound2", "group": "Part c) variables", "definition": "random(13..20)", "description": "", "templateType": "anything", "can_override": false}, "n1": {"name": "n1", "group": "Part c) variables", "definition": "multiplier3*random(1..upper_bound2)", "description": "", "templateType": "anything", "can_override": false}, "n2": {"name": "n2", "group": "Part c) variables", "definition": "random(1..n1-1)", "description": "", "templateType": "anything", "can_override": false}, "n3": {"name": "n3", "group": "Part c) variables", "definition": "random(1..n1-1)", "description": "", "templateType": "anything", "can_override": false}, "genres": {"name": "genres", "group": "Part c) variables", "definition": "[\"emo\",\"pop punk\",\"folk\",\"hardcore\",\"pop\",\"EDM\",\"R&B\",\"new wave\"]", "description": "", "templateType": "anything", "can_override": false}, "genre1": {"name": "genre1", "group": "Part c) variables", "definition": "random(genres)", "description": "", "templateType": "anything", "can_override": false}, "genre2": {"name": "genre2", "group": "Part c) variables", "definition": "random(genres except [genre1])", "description": "", "templateType": "anything", "can_override": false}, "genre3": {"name": "genre3", "group": "Part c) variables", "definition": "random(genres except [genre1,genre2])", "description": "", "templateType": "anything", "can_override": false}, "random_genre": {"name": "random_genre", "group": "Part c) variables", "definition": "random(selected_genres)", "description": "", "templateType": "anything", "can_override": false}, "which_genre": {"name": "which_genre", "group": "Part c) variables", "definition": "indices(selected_genres,random_genre)", "description": "", "templateType": "anything", "can_override": false}, "which_n": {"name": "which_n", "group": "Part c) variables", "definition": "nums[which_genre[0]]", "description": "", "templateType": "anything", "can_override": false}, "nums": {"name": "nums", "group": "Part c) variables", "definition": "[n1,n2,n3]", "description": "", "templateType": "anything", "can_override": false}, "selected_genres": {"name": "selected_genres", "group": "Part c) variables", "definition": "[genre1,genre2,genre3]", "description": "", "templateType": "anything", "can_override": false}, "fraction3": {"name": "fraction3", "group": "Part c) variables", "definition": "which_n/records", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Part d) variables", "variables": ["students", "multiplier", "vegans", "coeliacs", "dietary", "non_dietary", "fraction"]}, {"name": "Part e) variables", "variables": ["fabrics", "multiplier2", "num1", "upper_bound", "num2", "num3", "colour1", "colour2", "colour3", "random_colour", "colours", "which_colour", "numbers", "which_number", "fraction2"]}, {"name": "Part c) variables", "variables": ["records", "multiplier3", "upper_bound2", "n1", "n2", "n3", "genres", "genre1", "genre2", "genre3", "random_genre", "which_genre", "which_n", "nums", "selected_genres", "fraction3"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "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": "

A module leader wants to treat their course to pizza at their end of year party. Of the {students} students enrolled on the course, there are {vegans} vegans and {coeliacs} coeliacs. 

\n

What fraction of the students have no dietary requirements?

", "alternatives": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "minValue": "fraction", "maxValue": "fraction", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "minValue": "fraction", "maxValue": "fraction", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "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": "

Kiran is sorting some fabric into different colours for future textiles projects. Altogether, they have {fabrics} pieces of fabric, of which {num1} are {colour1}, {num2} are {colour2} and {num3} are {colour3}. 

\n

What fraction of the fabric is {random_colour}?

", "minValue": "fraction2", "maxValue": "fraction2", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": true, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "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": "

Jay is an avid vinyl collector, and is using their spare time to sort all of their records by genre. Over the years, they've collected a substantial {records} records. Since {genre1} music is their favourite, they have {n1} records in that particular genre, along with {n2} {genre2} records, and {n3} {genre3} records. 

\n

What fraction of the collection are {random_genre} records?

", "minValue": "fraction3", "maxValue": "fraction3", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": true, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}]}]}], "contributors": [{"name": "Mash Sheffield", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/496/"}, {"name": "Marta Emmett", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/11961/"}]}