// Numbas version: finer_feedback_settings {"name": "Q3 MT2 tree1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Q3 MT2 tree1", "tags": [], "metadata": {"description": "", "licence": "All rights reserved"}, "statement": "

A student decides to buy a takeaway. The probability of him choosing fish and chips is {pizza} and the probability of him choosing curry is {hotpot}. If he chooses fish and chips then the probability that he chooses to drink lemonade is {wine1}. If he chooses curry then the probability that he chooses lemonade is {wine2}.

\n

By drawing a tree diagram or otherwise, answer the following questions.

\n

", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"pizza": {"name": "pizza", "group": "Ungrouped variables", "definition": "random(0.1 .. 0.9#0.1)", "description": "

prob of choosing pizza

", "templateType": "randrange", "can_override": false}, "hotpot": {"name": "hotpot", "group": "Ungrouped variables", "definition": "1-pizza", "description": "", "templateType": "anything", "can_override": false}, "wine1": {"name": "wine1", "group": "Ungrouped variables", "definition": "random(0.2 .. 0.9#0.1)", "description": "", "templateType": "randrange", "can_override": false}, "notwine1": {"name": "notwine1", "group": "Ungrouped variables", "definition": "1-wine1", "description": "", "templateType": "anything", "can_override": false}, "wine2": {"name": "wine2", "group": "Ungrouped variables", "definition": "random(0.2 .. 0.8#0.1)", "description": "", "templateType": "randrange", "can_override": false}, "notwine2": {"name": "notwine2", "group": "Ungrouped variables", "definition": "1-wine2", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["pizza", "hotpot", "wine1", "notwine1", "wine2", "notwine2"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that he chooses fish and chips and lemonade?

", "minValue": "pizza*wine1", "maxValue": "pizza*wine1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "2", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that he chooses curry and also lemonade?

", "minValue": "hotpot*wine2", "maxValue": "hotpot*wine2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "2", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "4", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

What is the probability that she does not choose lemonade?

", "minValue": "pizza*notwine1+hotpot*notwine2", "maxValue": "pizza*notwine1+hotpot*notwine2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "2", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Yvonne Wancke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3703/"}]}]}], "contributors": [{"name": "Yvonne Wancke", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3703/"}]}