// Numbas version: exam_results_page_options {"name": "Domain and Range", "extensions": [], "custom_part_types": [], "resources": [["question-resources/question.png", "/srv/numbas/media/question-resources/question.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Domain and Range", "tags": [], "metadata": {"description": "Find Range, evaluate function and inverse from a graph.", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

The following diagram shows the graph of a function $f$, with domain $-2 \\leq x \\leq 4$

\n

\n

The points $(-2,0)$ and $(4,7)$ lie on the graph of $f$.

", "advice": "

In part (a) remember that the range refers to the possible y values and so the correct answer is $0 \\leq y \\leq 7$ don't forget to use less than or equal to signs.

\n

In part (b) you should find the y-coordinate on the graph corresponding to the x-coordinate {a}. In this case {f_a}

\n

In part (c) you are dealing with the inverse function and so should do the reverse. Given y-coordinate {b} find the corresponding x-coordinate {finvb}.

", "rulesets": {}, "extensions": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "x_coord[randomiser_1]", "description": "", "templateType": "anything"}, "randomiser_1": {"name": "randomiser_1", "group": "Ungrouped variables", "definition": "random(0 .. 4#1)", "description": "

number to randomise question b

", "templateType": "randrange"}, "f_a": {"name": "f_a", "group": "Ungrouped variables", "definition": "y_coord[randomiser_1]", "description": "", "templateType": "anything"}, "y_coord": {"name": "y_coord", "group": "Ungrouped variables", "definition": "[ 0, 2, 3, 4, 7 ]", "description": "", "templateType": "list of numbers"}, "randomiser_2": {"name": "randomiser_2", "group": "Ungrouped variables", "definition": "random(0 .. 4#1)", "description": "

number to randomise question c

", "templateType": "randrange"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "y_coord[randomiser_2]", "description": "", "templateType": "anything"}, "x_coord": {"name": "x_coord", "group": "Ungrouped variables", "definition": "[ -2, 0, 2, 3, 4 ]", "description": "", "templateType": "list of numbers"}, "finvb": {"name": "finvb", "group": "Ungrouped variables", "definition": "x_coord[randomiser_2]", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "randomiser_1", "f_a", "y_coord", "randomiser_2", "b", "x_coord", "finvb"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which of the following is the correct expression for the domain of $f$?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["$-2 \\leq x \\leq 4$", "$0 \\leq x \\leq 7$", "$0 \\leq y \\leq 7$", "$0 < y < 7$"], "matrix": [0, 0, "1", 0], "distractors": ["", "", "", ""]}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Write down $f( \\var{a} )$.

", "minValue": "f_a", "maxValue": "f_a", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en", "eu", "plain-eu"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Write down $f^{-1}( \\var{b} )$.

", "minValue": "finvb", "maxValue": "finvb", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en", "eu", "plain-eu"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Johnathan Gregg", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4974/"}]}]}], "contributors": [{"name": "Johnathan Gregg", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4974/"}]}