// Numbas version: exam_results_page_options {"name": "NCM4 Piecewise Function Domain and Range", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "NCM4 Piecewise Function Domain and Range", "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International"}, "statement": "

GIVEN:  The function graphed below.

\n

{geogebra_applet(\"https://www.geogebra.org/m/nxtkhrwf\", [[\"shift\",s],[\"xa2\",xa], [\"xb1\",xa]])}

", "advice": "", "rulesets": {}, "extensions": ["geogebra"], "variables": {"xa": {"name": "xa", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "", "templateType": "anything"}, "defs": {"name": "defs", "group": "Ungrouped variables", "definition": "[\"xa2\":xa, \"xb1\":xa]", "description": "", "templateType": "anything"}, "s": {"name": "s", "group": "Ungrouped variables", "definition": "random(2..6)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["xa", "defs", "s"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Write the domain of the function in interval notation.  For $\\pm\\infty$, please write out \"-infinity\" or \"+infinity\".

", "answer": "(-infinity,+infinity)", "displayAnswer": "(-infinity,+infinity)", "matchMode": "exact"}, {"type": "patternmatch", "useCustomName": false, "customName": "", "marks": 1, "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "adaptiveMarkingPenalty": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "prompt": "

Write the range of the funciton in interval notation.  For $\\pm\\infty$, please write out \"-infinity\" or \"+infinity\".

", "answer": "[-{s},+infinity)", "displayAnswer": "[-{s},+infinity)", "matchMode": "exact"}], "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}]}], "contributors": [{"name": "Terry Young", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3130/"}]}