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

The number of students in each year group of a school are shown in the table below. 

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Year56789
Number of students{Y5}{Y6}{Y7}{Y8}{Y9}
\n

", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"y5": {"name": "y5", "group": "Ungrouped variables", "definition": "random(35 .. 60#5)", "description": "", "templateType": "randrange", "can_override": false}, "y6": {"name": "y6", "group": "Ungrouped variables", "definition": "random(35 .. 60#5)", "description": "", "templateType": "randrange", "can_override": false}, "y7": {"name": "y7", "group": "Ungrouped variables", "definition": "random(35 .. 60#5)", "description": "", "templateType": "randrange", "can_override": false}, "y8": {"name": "y8", "group": "Ungrouped variables", "definition": "random(35 .. 60#5)", "description": "", "templateType": "randrange", "can_override": false}, "y9": {"name": "y9", "group": "Ungrouped variables", "definition": "random(35 .. 60#5)", "description": "", "templateType": "randrange", "can_override": false}, "total": {"name": "total", "group": "Ungrouped variables", "definition": "Y5+Y6+Y7+Y8+Y9", "description": "", "templateType": "anything", "can_override": false}, "PY9": {"name": "PY9", "group": "Ungrouped variables", "definition": "Y9/total", "description": "", "templateType": "anything", "can_override": false}, "PY8": {"name": "PY8", "group": "Ungrouped variables", "definition": "y8/total", "description": "", "templateType": "anything", "can_override": false}, "PY7": {"name": "PY7", "group": "Ungrouped variables", "definition": "y7/total", "description": "", "templateType": "anything", "can_override": false}, "py6": {"name": "py6", "group": "Ungrouped variables", "definition": "y6/total\n", "description": "", "templateType": "anything", "can_override": false}, "py5": {"name": "py5", "group": "Ungrouped variables", "definition": "y5/total", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["y5", "y6", "y7", "y8", "y9", "total", "PY9", "PY8", "PY7", "py6", "py5"], "variable_groups": [], "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": "

How many students are there in the school?

", "minValue": "total", "maxValue": "total", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A student is selected at random. What is the probability that they are in year 9? Give your answer as a fraction.

", "minValue": "py9", "maxValue": "py9", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "4", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Another student is selected at random from all of the students in the school. What is the probability that they are in years 5, 6 or 7? Give your answer as a fraction.

", "minValue": "py5+py6+py7", "maxValue": "py5+py6+py7", "correctAnswerFraction": false, "allowFractions": true, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "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/"}]}