// Numbas version: exam_results_page_options {"name": "Modelling 2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"showfrontpage": false, "preventleave": false, "allowregen": true}, "question_groups": [{"questions": [{"ungrouped_variables": ["a", "b", "r"], "advice": "", "parts": [{"variableReplacementStrategy": "originalfirst", "prompt": "

How many people are infected by day 2? [[0]]

\n

How many people are infected by day 3? [[1]]

\n

How many people are infected by day 4? [[2]]

", "marks": 0, "type": "gapfill", "unitTests": [], "scripts": {}, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "sortAnswers": false, "showFeedbackIcon": true, "gaps": [{"variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "answer": "{a}*{b+1}", "checkingType": "dp", "marks": 1, "showPreview": true, "type": "jme", "expectedVariableNames": [], "checkingAccuracy": "2", "scripts": {}, "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "checkVariableNames": false, "failureRate": 1, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "answer": "{a}*{b+1}^2", "checkingType": "dp", "marks": 1, "showPreview": true, "type": "jme", "expectedVariableNames": [], "checkingAccuracy": "2", "scripts": {}, "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "checkVariableNames": false, "failureRate": 1, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "answer": "{a}*{b+1}^3", "checkingType": "dp", "marks": 1, "showPreview": true, "type": "jme", "expectedVariableNames": [], "checkingAccuracy": "2", "scripts": {}, "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "checkVariableNames": false, "failureRate": 1, "variableReplacements": [], "customMarkingAlgorithm": ""}], "variableReplacements": [], "showCorrectAnswer": true}, {"variableReplacementStrategy": "originalfirst", "prompt": "

Given the following recurrence relation for the number of people infected by day n, find A and B:

\n

\$C(n)=\\begin{cases} A & if & n=1\\\\ C(n-1) + [C(n-1) \\times B] & if & n\\geq2 \\end{cases}\$

\n

A = [[0]] and B = [[1]]

", "marks": 0, "type": "gapfill", "unitTests": [], "scripts": {}, "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "sortAnswers": false, "showFeedbackIcon": true, "gaps": [{"variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "answer": "{a}", "checkingType": "absdiff", "marks": 1, "showPreview": true, "type": "jme", "expectedVariableNames": [], "checkingAccuracy": 0.001, "scripts": {}, "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "checkVariableNames": false, "failureRate": 1, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"variableReplacementStrategy": "originalfirst", "vsetRange": [0, 1], "answer": "{b}", "checkingType": "absdiff", "marks": 1, "showPreview": true, "type": "jme", "expectedVariableNames": [], "checkingAccuracy": 0.001, "scripts": {}, "vsetRangePoints": 5, "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "checkVariableNames": false, "failureRate": 1, "variableReplacements": [], "customMarkingAlgorithm": ""}], "variableReplacements": [], "showCorrectAnswer": true}], "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}], "tags": [], "type": "question", "preamble": {"js": "", "css": ""}, "functions": {}, "metadata": {"description": "", "licence": "None specified"}, "name": "Modelling 2", "variablesTest": {"maxRuns": 100, "condition": ""}, "variable_groups": [], "statement": "

Suppose we model the spread of a virus in a certain population as follows. On day one, $\\var{a}$ people are infected. On each subsequent day, each infected person gives the cold to $\\var{b}$ others.

", "rulesets": {}, "extensions": [], "variables": {"b": {"description": "", "templateType": "anything", "name": "b", "definition": "random(2..8)", "group": "Ungrouped variables"}, "r": {"description": "", "templateType": "anything", "name": "r", "definition": "random(5..8)", "group": "Ungrouped variables"}, "a": {"description": "", "templateType": "anything", "name": "a", "definition": "random(1..6)", "group": "Ungrouped variables"}}}], "pickingStrategy": "all-ordered"}], "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}]}