// Numbas version: finer_feedback_settings {"name": "Quiz - Computing terms Q2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "b", "c"], "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "
Consider the following recurrence relation:
\n\\[P(n)=\\begin{cases}\\var{a} & if & n=1\\\\ P(n-1) + n & if & n \\geq 2\\\\ \\end{cases}\\]
\n", "metadata": {"description": "", "licence": "None specified"}, "name": "Quiz - Computing terms Q2", "rulesets": {}, "extensions": [], "functions": {}, "advice": "", "variables": {"b": {"description": "", "group": "Ungrouped variables", "name": "b", "templateType": "anything", "definition": "random(1..4 except a)"}, "a": {"description": "", "group": "Ungrouped variables", "name": "a", "templateType": "anything", "definition": "random(0..5)"}, "c": {"description": "", "group": "Ungrouped variables", "name": "c", "templateType": "anything", "definition": "random(1..5)"}}, "parts": [{"variableReplacements": [], "extendBaseMarkingAlgorithm": true, "prompt": "Compute the first four terms of this recurrence relation.
\nP(1) = [[0]]
\nP(2) = [[1]]
\nP(3) = [[2]]
\nP(4) = [[3]]
\n", "unitTests": [], "showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "gaps": [{"variableReplacements": [], "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "jme", "marks": 1, "customMarkingAlgorithm": "", "checkingType": "absdiff", "answer": "{a}", "checkingAccuracy": 0.001, "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}, {"variableReplacements": [], "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "jme", "marks": 1, "customMarkingAlgorithm": "", "checkingType": "absdiff", "answer": "{a} + 2", "checkingAccuracy": 0.001, "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}, {"variableReplacements": [], "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "jme", "marks": 1, "customMarkingAlgorithm": "", "checkingType": "absdiff", "answer": "{a}+5", "checkingAccuracy": 0.001, "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}, {"variableReplacements": [], "failureRate": 1, "extendBaseMarkingAlgorithm": true, "checkVariableNames": false, "unitTests": [], "showFeedbackIcon": true, "scripts": {}, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "type": "jme", "marks": 1, "customMarkingAlgorithm": "", "checkingType": "absdiff", "answer": "{a}+9", "checkingAccuracy": 0.001, "vsetRangePoints": 5, "showPreview": true, "vsetRange": [0, 1], "expectedVariableNames": []}], "type": "gapfill", "marks": 0, "customMarkingAlgorithm": "", "scripts": {}, "sortAnswers": false}], "variable_groups": [], "tags": [], "preamble": {"js": "", "css": ""}, "type": "question", "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}]}]}], "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}]}