// Numbas version: exam_results_page_options {"name": "SP NC lunch pack combinations (7)", "extensions": [], "custom_part_types": [], "resources": [["question-resources/Eating_out_table_Pyu6AZz.png", "/srv/numbas/media/question-resources/Eating_out_table_Pyu6AZz.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "SP NC lunch pack combinations (7)", "tags": ["LANTITE"], "metadata": {"description": "
Used for LANTITE preparation (Australia). SP = Statistics & Probability strand. NC = Non Calculator strand. Students are shown a table of lunch options, given a child's food preferences and asked how many combinations are possible. There are seven possible questions.
", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nThe table below shows average annual expenditure on eating out in Australia in 2016
\n, broken down by establishment type and state. The average annual expenditure was calculated by dividing total revenues by the number of households in the state.
\n\n\nThe table below shows average annual expenditure on eating out in Australia in 2016
\n, broken down by establishment type and state. The average annual expenditure was calculated by dividing total revenues by the number of households in the state.
\n\n\nThe Carrington Public School canteen offers pre-ordered lunch packs. Each lunch pack contains three things - a main item, a snack, and a drink.
\nThe choices are listed in the table below.
\nChildren must choose one item from each row in the table.
\nItem | \nChoice 1 | \nChoice 2 | \nChoice 3 | \nChoice 4 | \nChoice 5 | \n
Main item | \nsandwich | \nwrap | \n--- | \n--- | \n--- | \n
Snack | \napple | \nbanana | \nmuffin | \nbag of chips | \nmega cookie | \n
Drink | \njuice | \nwater | \nmilk | \n--- | \n--- | \n
Read the question carefully, and look at the table. How many options are there for each of the three items, for this particular student, without the items they don't like?
\nMain items: {mains} Snacks: {snacks} Drinks: {drinks}
\nTo find the total number of possible combinations, we multiply these three numbers (we do not add them).
\n{mains} x {snacks} x {drinks} = {mains*snacks*drinks}
\nThere are {mains*snacks*drinks} combinations that this student can potentially choose from.
", "rulesets": {}, "extensions": [], "variables": {"mains": {"name": "mains", "group": "Ungrouped variables", "definition": "scenario[\"main\"]", "description": "\n\n\nThe number of main item options for the given scenario. It is preset in the scenario.
", "templateType": "anything"}, "snacks": {"name": "snacks", "group": "Ungrouped variables", "definition": "scenario[\"snack\"]", "description": "\n\nThe number of snack options for the given scenario. It is preset in the scenario.
", "templateType": "anything"}, "scenario": {"name": "scenario", "group": "Ungrouped variables", "definition": "random(scenarios)", "description": "\n\n\n\n\nThe randomly chosen scenario, consisting of question statement, the numbers for mains, snacks & drinks, the correct answer, and two distractors.
", "templateType": "anything"}, "wrong1": {"name": "wrong1", "group": "Ungrouped variables", "definition": "mains+snacks+drinks", "description": "\n\n\n\n\n\n\n\n\nThe first incorrect answer (distractor) for the randomly chosen scenario. Students will get this answer if they add instead of multiply. It is calculated from the variables which hold the counts for the number of mains, snacks and drinks.
", "templateType": "anything"}, "wrong2": {"name": "wrong2", "group": "Ungrouped variables", "definition": "scenario[\"distractor2\"]", "description": "\n\n\n\nThe second incorrect answer (distractor) for the randomly chosen scenario. It is preset in the scenario, not calculated.
", "templateType": "anything"}, "wrong3": {"name": "wrong3", "group": "Ungrouped variables", "definition": "scenario[\"distractor3\"]", "description": "\n\n\n\n\nThe third incorrect answer (distractor) for the randomly chosen scenario. It is preset in the scenario, not calculated.
", "templateType": "anything"}, "questionwording": {"name": "questionwording", "group": "Ungrouped variables", "definition": "scenario[\"question\"]", "description": "\n\n\n\n\nThe question statement for the randomly chosen scenario.
", "templateType": "anything"}, "correctanswer": {"name": "correctanswer", "group": "Ungrouped variables", "definition": "mains*snacks*drinks", "description": "\n\n\n\n\n\n\n\nThe correct answer for the randomly chosen scenario, calculated from the variables which hold the counts for the number of mains, snacks and drinks.
", "templateType": "anything"}, "drinks": {"name": "drinks", "group": "Ungrouped variables", "definition": "scenario[\"drink\"]", "description": "\n\nThe number of drink options for the given scenario. It is preset in the scenario.
", "templateType": "anything"}, "scenarios": {"name": "scenarios", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n {\\n \\\"question\\\":\\\"Jenny does not like wraps or milk. How many different combinations of lunch packs could she choose?\\\",\\n \\\"main\\\":1,\\n \\\"snack\\\":5,\\n \\\"drink\\\":2,\\n \\\"distractor2\\\":\\\"9\\\",\\n \\\"distractor3\\\":\\\"12\\\"\\n },\\n {\\n \\\"question\\\":\\\"Maria does not like bananas or water. How many different combinations of lunch packs could she choose?\\\",\\n \\\"main\\\":2,\\n \\\"snack\\\":4,\\n \\\"drink\\\":2,\\n \\\"distractor2\\\":\\\"12\\\",\\n \\\"distractor3\\\":\\\"10\\\"\\n },\\n {\\n \\\"question\\\":\\\"Alison cannot drink milk. How many different combinations of lunch packs could she choose?\\\",\\n \\\"main\\\":2,\\n \\\"snack\\\":5,\\n \\\"drink\\\":2,\\n \\\"distractor2\\\":\\\"24\\\",\\n \\\"distractor3\\\":\\\"16\\\"\\n },\\n {\\n \\\"question\\\":\\\"Tina does not like sandwiches or muffins. How many different combinations of lunch packs could she choose?\\\",\\n \\\"main\\\":1,\\n \\\"snack\\\":4,\\n \\\"drink\\\":3,\\n \\\"distractor2\\\":\\\"16\\\",\\n \\\"distractor3\\\":\\\"14\\\"\\n },\\n {\\n \\\"question\\\":\\\"Jon is not a fussy eater, and likes everything on the menu. How many different combinations of lunch packs could he choose?\\\",\\n \\\"main\\\":2,\\n \\\"snack\\\":5,\\n \\\"drink\\\":3,\\n \\\"distractor2\\\":\\\"20\\\",\\n \\\"distractor3\\\":\\\"15\\\"\\n },\\n {\\n \\\"question\\\":\\\"Ravi does not like apples. How many different combinations of lunch packs could he choose?\\\",\\n \\\"main\\\":2,\\n \\\"snack\\\":4,\\n \\\"drink\\\":3,\\n \\\"distractor2\\\":\\\"15\\\",\\n \\\"distractor3\\\":\\\"28\\\"\\n },\\n {\\n \\\"question\\\":\\\"Cheng does not like wraps, chips or cookies. How many different combinations of lunch packs could he choose?\\\",\\n \\\"main\\\":1,\\n \\\"snack\\\":3,\\n \\\"drink\\\":3,\\n \\\"distractor2\\\":\\\"10\\\",\\n \\\"distractor3\\\":\\\"12\\\"\\n }\\n]\"))", "description": "\n\n\n\n\n\n\n\n\nThe question statement, number of mains, snacks and drinks choices, and two distractors for each of the seven possible questions.
", "templateType": "json"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["scenarios", "scenario", "questionwording", "correctanswer", "wrong1", "wrong2", "wrong3", "mains", "snacks", "drinks"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "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": "\n{questionwording}
", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["\n{correctanswer}", "{wrong1}", "{wrong2}", "{wrong3}"], "matrix": ["1", 0, 0, 0], "distractors": ["Well done!", "Working out combinations involves multiplication, not addition.", "Hint: Working out combinations involves multiplication.", "Hint: Working out combinations involves multiplication."]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}]}], "contributors": [{"name": "Adelle Colbourn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2083/"}]}