// Numbas version: exam_results_page_options {"name": "Simon's copy of Combinations of one choice from each of three groups,", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "c", "b"], "preamble": {"js": "", "css": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

A restaurant has a menu with $\\var{a}$ starters, $\\var{b}$ main courses and $\\var{c}$ desserts.

\n

How many different ways are there of choosing one starter, one main course and one dessert?

", "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [], "parts": [{"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "sortAnswers": false, "scripts": {}, "unitTests": [], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "type": "gapfill", "customName": "", "showFeedbackIcon": true, "marks": 0, "gaps": [{"maxValue": "a*b*c", "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true, "correctAnswerFraction": false, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "showFractionHint": true, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "minValue": "a*b*c", "unitTests": [], "useCustomName": false, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "customName": "", "mustBeReduced": false, "showFeedbackIcon": true, "allowFractions": false, "marks": 2, "mustBeReducedPC": 0}], "prompt": "

Number of different ways = ?[[0]]

"}], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(15..30)"}, "c": {"name": "c", "group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(5..10)"}, "b": {"name": "b", "group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(5..10)"}}, "name": "Simon's copy of Combinations of one choice from each of three groups,", "functions": {}, "extensions": [], "tags": [], "rulesets": {}, "advice": "

There are $\\var{a}$ ways to choose a starter.

\n

For a given starter, there are $\\var{b}$ different ways of choosing a main course. That means there are $\\var{a} \\times \\var{b}$ ways of choosing a starter and main course.

\n

For a given starter and main course, we have $\\var{c}$ different choices of desert. That means that the total number of possibilities is $\\var{a}\\times \\var{b}\\times \\var{c}=\\var{a*b*c}$

", "type": "question", "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Simon Thomas", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3148/"}]}