// Numbas version: exam_results_page_options {"name": "Simple expected outcome", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["answer", "denom", "parts", "onepart", "fraction"], "name": "Simple expected outcome", "tags": ["expected value", "fraction"], "preamble": {"css": "", "js": ""}, "advice": "

$ \\dfrac {\\var{parts}}{\\var{denom}} \\times 40 = \\var{parts} \\times \\var{onepart} = \\var{answer}$

", "rulesets": {}, "parts": [{"prompt": "

In how many matches would he expect to score in a season of 40 games?

\n

[[0]] matches.

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{answer}", "minValue": "{answer}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "gapfill"}], "extensions": [], "statement": "

A premiership footballer expects to score a goal in {parts} {fraction} of the matches he plays.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"answer": {"definition": "parts*40/denom", "templateType": "anything", "group": "Ungrouped variables", "name": "answer", "description": ""}, "denom": {"definition": "switch(fraction = 'quarters', 4, fraction = 'fifths',5, fraction = 'eighths',8, fraction = 'tenths', 10)", "templateType": "anything", "group": "Ungrouped variables", "name": "denom", "description": ""}, "parts": {"definition": "switch( fraction ='fifths', random(2,3), fraction = 'quarters', 3, fraction='eighths', random(3,5), fraction = 'tenths', random(3,7))", "templateType": "anything", "group": "Ungrouped variables", "name": "parts", "description": ""}, "onepart": {"definition": "40/denom", "templateType": "anything", "group": "Ungrouped variables", "name": "onepart", "description": ""}, "fraction": {"definition": "random( 'fifths', 'quarters', 'eighths', 'tenths')", "templateType": "anything", "group": "Ungrouped variables", "name": "fraction", "description": ""}}, "metadata": {"description": "

Footballer expects to score in a/b matches.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}]}], "contributors": [{"name": "Lois Rollings", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/326/"}]}