// Numbas version: exam_results_page_options {"name": "Quiz 1 - computing terms", "metadata": {"description": "Recurrence relations quiz", "licence": "None specified"}, "duration": 900, "percentPass": 0, "showQuestionGroupNames": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questions": [{"name": "Quiz - Computing terms Q1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}], "metadata": {"licence": "None specified", "description": ""}, "variables": {"c": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(80..100)", "name": "c"}, "d": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "c-1", "name": "d"}, "b": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(2..5)", "name": "b"}, "a": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "random(2..9)", "name": "a"}, "f": {"group": "Ungrouped variables", "templateType": "anything", "description": "", "definition": "c-2", "name": "f"}}, "parts": [{"showCorrectAnswer": true, "unitTests": [], "type": "gapfill", "prompt": "

Compute the first four terms of this recurrence relation.

\n

C(1) = [[0]]

\n

C(2) = [[1]]

\n

C(3) = [[2]]

\n

C(4) = [[3]]

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

Write $C(\\var{c})$ in terms of $C(\\var{d})$

\n

$C(\\var{c}) = C(\\var{d}) +$[[0]]

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

Write $C(\\var{c})$ in terms of $C(\\var{f})$

\n

$C(\\var{c}) = C(\\var{f}) +$[[0]]

", "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "gaps": [{"vsetRangePoints": 5, "checkVariableNames": false, "showCorrectAnswer": true, "unitTests": [], "showFeedbackIcon": true, "expectedVariableNames": [], "checkingType": "absdiff", "scripts": {}, "showPreview": true, "variableReplacementStrategy": "originalfirst", "failureRate": 1, "vsetRange": [0, 1], "checkingAccuracy": 0.001, "type": "jme", "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "answer": "2*{a}", "marks": 1, "customMarkingAlgorithm": ""}], "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "marks": 0, "customMarkingAlgorithm": ""}], "rulesets": {}, "tags": [], "advice": "", "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"js": "", "css": ""}, "variable_groups": [], "ungrouped_variables": ["a", "b", "c", "d", "f"], "functions": {}, "statement": "

Consider the following recurrence relation:

\n

\$C(n)=\\begin{cases}\\var{b} & if & n=1\\\\ C(n-1) + \\var{a} & if & n\\geq2 \\end{cases}\$

\n

", "type": "question"}, {"name": "Quiz - Computing terms Q2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}], "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"}, "rulesets": {}, "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.

\n

P(1) = [[0]]

\n

P(2) = [[1]]

\n

P(3) = [[2]]

\n

P(4) = [[3]]

\n

Consider the following recurrence relation:

\n

\$F(n)=\\begin{cases}\\var{a} & if & n=1\\\\ \\var{b} & if & n=2\\\\ F(n-1) + F(n-2) & if & n\\geq3 \\end{cases}\$

\n

Compute the first five terms of this recurrence relation.

\n

F(1) = [[0]]

\n

F(2) = [[1]]

\n

F(3) = [[2]]

\n

F(4) = [[3]]

\n

F(5) = [[4]]

\n

", "variableReplacements": [], "marks": 0, "customName": "", "showFeedbackIcon": true, "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": ""}]}]}], "navigation": {"allowregen": false, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "onleave": {"action": "none", "message": "

You have not completed all the parts of this question.

"}, "preventleave": true, "startpassword": "hanoi"}, "timing": {"allowPause": true, "timeout": {"action": "warn", "message": "

The time is up!

"}, "timedwarning": {"action": "warn", "message": "

There are 5 min remaining

"}}, "feedback": {"showactualmark": false, "showtotalmark": true, "showanswerstate": false, "allowrevealanswer": false, "advicethreshold": 0, "intro": "", "feedbackmessages": []}, "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}], "extensions": [], "custom_part_types": [], "resources": []}