// Numbas version: exam_results_page_options {"name": "Maria's copy of Function Quiz Q5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"b2": {"definition": "b1+3", "templateType": "anything", "name": "b2", "description": "", "group": "Ungrouped variables"}, "b1": {"definition": "b0+2", "templateType": "anything", "name": "b1", "description": "", "group": "Ungrouped variables"}, "b0": {"definition": "random(1..3)", "templateType": "anything", "name": "b0", "description": "", "group": "Ungrouped variables"}, "Input2": {"definition": "{b2}+4", "templateType": "anything", "name": "Input2", "description": "", "group": "Ungrouped variables"}, "Input1": {"definition": "b0+1", "templateType": "anything", "name": "Input1", "description": "", "group": "Ungrouped variables"}, "Answer1": {"definition": "{a}*{Input1}+{b}", "templateType": "anything", "name": "Answer1", "description": "", "group": "Ungrouped variables"}, "d": {"definition": "random(2..8)", "templateType": "anything", "name": "d", "description": "", "group": "Ungrouped variables"}, "c": {"definition": "random(-2..2 except 0)", "templateType": "anything", "name": "c", "description": "", "group": "Ungrouped variables"}, "Answer2": {"definition": "{c}*({b2}+4)^2+{d}", "templateType": "anything", "name": "Answer2", "description": "", "group": "Ungrouped variables"}, "b": {"definition": "random(1..3)", "templateType": "anything", "name": "b", "description": "", "group": "Ungrouped variables"}, "a": {"definition": "random(2..5)", "templateType": "anything", "name": "a", "description": "", "group": "Ungrouped variables"}}, "parts": [{"showFeedbackIcon": true, "prompt": "

What is the value of $f(\\var{Input1})$? [[0]]

\n

What is the value of $f(\\var{Input2})$? [[1]]

", "variableReplacements": [], "type": "gapfill", "scripts": {}, "showCorrectAnswer": true, "marks": 0, "gaps": [{"showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "variableReplacements": [], "type": "jme", "checkVariableNames": false, "vsetRangePoints": 5, "checkingType": "absdiff", "variableReplacementStrategy": "originalfirst", "marks": 1, "answer": "{Answer1}", "unitTests": [], "customMarkingAlgorithm": "", "showPreview": true, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "expectedVariableNames": [], "vsetRange": [0, 1], "failureRate": 1}, {"showFeedbackIcon": true, "showCorrectAnswer": true, "scripts": {}, "variableReplacements": [], "type": "jme", "checkVariableNames": false, "vsetRangePoints": 5, "checkingType": "absdiff", "variableReplacementStrategy": "originalfirst", "marks": 1, "answer": "{Answer2}", "unitTests": [], "customMarkingAlgorithm": "", "showPreview": true, "checkingAccuracy": 0.001, "extendBaseMarkingAlgorithm": true, "expectedVariableNames": [], "vsetRange": [0, 1], "failureRate": 1}], "customMarkingAlgorithm": "", "sortAnswers": false, "unitTests": [], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}], "extensions": [], "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"js": "", "css": ""}, "statement": "

Given the real function below, you should be able to determine its domain. 

\n

$\\simplify{f}(\\simplify{x})=\\left\\{\\begin{align}&\\simplify{0},&& \\text{ for } \\simplify{x}< \\var{b0}, \\\\&\\simplify{{a}x+{b}},&& \\text{ for } \\var{b0}\\leq \\simplify{x}< \\var{b1},\\\\ &\\simplify{{c}x^2+{d}},&& \\text{ for } \\var{b1}\\leq\\simplify{x}< \\var{b2},\\end{align}\\right.$

", "ungrouped_variables": ["a", "b", "c", "d", "b0", "b1", "b2", "Answer1", "Answer2", "Input1", "Input2"], "rulesets": {}, "name": "Maria's copy of Function Quiz Q5", "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": ""}, "functions": {}, "advice": "", "tags": [], "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Joshua Calcutt", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3267/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "Joshua Calcutt", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3267/"}, {"name": "Maria Aneiros", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3388/"}]}